AlexanderBB
Well-known Member
- Joined
- Jul 1, 2009
- Messages
- 2,050
- Office Version
- 2019
- 2010
- Platform
- Windows
VBA Code:
Set iRange = .Range("A100:Z100")
On Error GoTo Err8 ' handle the error that occurs if there is no cell with comments
Set Comm = iRange.SpecialCells(xlCellTypeComments)
However the 3rd line above runs Private Sub Worksheet_SelectionChange(ByVal Target As Range)
I want to inhibit this so the selection Change event does not run at this time.
Is there an Excel method for that? Or should I just use a global boolean to make it exit?