ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Remove a cell's CF by double clicking it (https://www.excelbanter.com/excel-programming/436219-remove-cells-cf-double-clicking.html)

Jock

Remove a cell's CF by double clicking it
 
Is it possible to remove CF (there's only 1 condition) from a cell using the
Before Doubleclick() event?
Thanks,
--
Traa Dy Liooar

Jock

Khuli

Remove a cell's CF by double clicking it
 
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel
As Boolean)
Target.FormatConditions.Delete
End Sub

Jacob Skaria

Remove a cell's CF by double clicking it
 
Try the below

Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As
Boolean)
Target.FormatConditions.Delete
Cancel = True
End Sub

If this post helps click Yes
---------------
Jacob Skaria


"Jock" wrote:

Is it possible to remove CF (there's only 1 condition) from a cell using the
Before Doubleclick() event?
Thanks,
--
Traa Dy Liooar

Jock



All times are GMT +1. The time now is 02:17 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com