Heya DRJ,
man o man!! I know it will work, but I get a compile error. I have the same worksheetselection_change sub already in sheet 1. Its the one that MD gave me on my data val thread.
I get a compile error, ambiguous name detected =worksheet_selectionchange.
After that, I been trying for an hour to just put a command button on the sheet to call the darn userform2...
How can I use both in same sheet code module?
Any help is appreciated!
I looked at the article from Dreamboat, man o mna, thats it, however I keep getting funky errors, because of the other option explicit above this one in sheet1
Option Explicit
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Row() > 12 Then
If Target.Column() = 1 And Target.Row() Mod 2 = 0 Then
UserForm1.Show
End If
End If
End Sub
Option Explicit
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Dim Rng1 As Range
'Assign the range to work with
Set Rng1 = Range("H2")
'Only work on assigned range
If Intersect(Target, Rng1) Is Nothing Then Exit Sub
'Cancel cell editing that would normally trigger when you double click
Cancel = True
'Call the userform
UserForm2.Show
End Sub
'End worksheet module code
these 2 things dont like each other...is there another way?
OMG... , I took out the 2nd option explicit declaration...works great!!!!!