View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Resant Resant is offline
external usenet poster
 
Posts: 23
Default Call Event and Load Form based on Variable

Hi all,
I have some problem with dynamic things :
1) I need to call an event which the event name was saved in a
variable.
Eg :
Dim sEventName as String
sEventName = "Button1_Click"

Call sEventName

2) And how to load Form based on variable too?
Eg :
Dim sFormName as String
sFormName = "Form1"

Load sFormName

Hope someone can help me to solve the problems.

Thanks a lot!

Resant