Still relatively new to coding. I'm trying to build an equipment schedule so I know where gear is going/has been. I'm trying to set it up so I can double click the piece of equipment which will in turn run a user form. It works for my first line (A3), but not for anything after.
Not sure if there's also a way to use a "For Each Cell In Range("X:X") sort of function to cut down on lines as well. Any help is appreciated!
Code:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
If Target.Address <> "$A$3" Then Exit Sub
UserForm1.Show
If Target.Address <> "$A$4" Then Exit Sub
UserForm1.Show
Not sure if there's also a way to use a "For Each Cell In Range("X:X") sort of function to cut down on lines as well. Any help is appreciated!