Generic Code for multiple forms

KerryGan

Member
Joined
Jan 6, 2006
Messages
10
Programming Experience
1-3
Hi,
I'm using a form(1) to work with lots of other forms in visio VBA.
So I need form(1) to be able to switch between comboboxes on which ever other form i have open. So, (if you are still with me!!) I added a string name for the form name and referenced the string like this:
Form_Name="Frm_Other_Form"
and then used some generic code like this:
With Form_Name.Combobox1
'some code
End With

BUT if doesn't work! Does anyone know how I can reference the form names so I can use my generic code?
Many thanks
Sue
 
Back
Top