Rockhopper3
Board Regular
- Joined
- Apr 11, 2006
- Messages
- 131
Code:
Function CountBold(r As Range) As Long
Dim c As Range
Application.Volatile
For Each c In r
If c.Font.Bold Then CountBold = CountBold + 1
Next c
End Function
So I am using the above code to increase the value of column I by one when the cell in the same row in column C is double clicked. This all works great, the only problem is the same thing is happening when I double click a cell in column B. I need this function to only work when a cell in column C is double clicked. Any help would be most appreciated.
Cheers.