I have many subroutines that get called from various events on multiple excel worksheets,
All I want to do is identify which subs have been used.
I wish to set a variable in each sub and take action in another sub depending on its value:
Purch does not get passed. Helllllp
sub calc()
dim Purch as integer
if Purch = 1 then
'perform some action
elseif Purch = 2 then
' perform som different action
'etc
end if
end sub
sub action1()
Purch = 1
end sub
sub action2()
Purch = 2
end sub
'etc for many such subs.
All I want to do is identify which subs have been used.
I wish to set a variable in each sub and take action in another sub depending on its value:
Purch does not get passed. Helllllp
sub calc()
dim Purch as integer
if Purch = 1 then
'perform some action
elseif Purch = 2 then
' perform som different action
'etc
end if
end sub
sub action1()
Purch = 1
end sub
sub action2()
Purch = 2
end sub
'etc for many such subs.
Comment