Passing Parameters
Posted by Bob on August 28, 2001 2:07 PM
Anyone know if it is possible to pass a parameter to the code in
a sheet? In other words, If a click event happens, then Parameter
= True.
I tried:
Sub Review_Click()
MyParm = True
Call Worksheet_SelectionChange(MyParm)
End sub
Sub Worksheet_SelectionChange(ByVal Target As Excel.Range, ByVal MYPARM as Boolean)
If MyPARM = True then
Do some Code
Else
Don't do my Code
End If
End sub
But it didn't work.