I have a sub routine that checks if the ActiveCell.Value is within a specified range(("A7:A46") but I cant get it to work, what I'm trying to do is ensure that when a user clicks my command button it checks the active cell and compares it to range("A7:A46")
I have something like this
Private Sumb Cmdbutton_Click()
if activeCell.value <> myRange("A7:A46")
...indicate error!
but I can't get it to work
I have something like this
Private Sumb Cmdbutton_Click()
if activeCell.value <> myRange("A7:A46")
...indicate error!
but I can't get it to work