largeselection
Active Member
- Joined
- Aug 4, 2008
- Messages
- 358
As a follow-up to a previous post...
I'm trying to get a macro to run on a change in a cell. Here's what I have so far:
Private Sub TestClick()
If Not IsEmpty(Target) Then
Sheets("Sheet 3").Columns("A:A").Hidden = True
Else
End If
End Sub
So if the target cell is not empty then hide column A on "Sheet 3".
(The target cell toggles empty/not empty on click as part of a different event macro).
But...It's not working! Any ideas what could be going awry?
I'm trying to get a macro to run on a change in a cell. Here's what I have so far:
Private Sub TestClick()
If Not IsEmpty(Target) Then
Sheets("Sheet 3").Columns("A:A").Hidden = True
Else
End If
End Sub
So if the target cell is not empty then hide column A on "Sheet 3".
(The target cell toggles empty/not empty on click as part of a different event macro).
But...It's not working! Any ideas what could be going awry?