View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Beertje Beertje is offline
external usenet poster
 
Posts: 10
Default Passing a variable to UserForm_activate() event

I am trying to use one userform for different macro's.
i.e.:
Private Sub UserForm_activate(macro)
If macro="modA" then
Call modA
Else
if macro ="modB"
Call modB
Else
Call modC
endif
Endif
End Sub

Is this possible? Please adise how to since I cannot get it to work.

Thanks.