randys106
asked on
Worksheet Change Syntax Troubles
I am trying to manually call the Worksheet_Change Subroutine. My code looks like this...
Temp is a named range. The error I get is "Object Required".
I have also tried things like "$A$1:$A$1" and its variations. Here I get a type mismatch error.
I do not need the target to point to anything, I just need the subroutine to run.
Ideas?
Private Sub mySubroutine()
…code…
Call Worksheet_Change (Temp)
…code…
End Sub
Temp is a named range. The error I get is "Object Required".
I have also tried things like "$A$1:$A$1" and its variations. Here I get a type mismatch error.
I do not need the target to point to anything, I just need the subroutine to run.
Ideas?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Yes its a cheat...and a damn beautiful one. I like it! It worked perfectly.
Thanks, glad to help!
Total cheat, but (assuming the sheet is "Sheet1"), what about replacing the Call line by...
Open in new window
Regards,Brian.