GeorgeWhite
New Member
- Joined
- Apr 20, 2017
- Messages
- 27
Hi All,
I currently have a piece of code which if I select a certain cell (F6) it will show a userform. I need some help modifying this code that if the cell has a value then the userform won't popup meaning that it will only show when the cell is blank.
This is the code I currently have.
Many thanks
I currently have a piece of code which if I select a certain cell (F6) it will show a userform. I need some help modifying this code that if the cell has a value then the userform won't popup meaning that it will only show when the cell is blank.
This is the code I currently have.
Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Not Application.Intersect(Target, Range("F6")) Is Nothing Then
UserForm1.Show
End If
End Sub
Many thanks