Calling subs in another form

  • Thread starter Thread starter dave h
  • Start date Start date
D

dave h

Hi,

Form A contains: public sub mysub ()

If formA brings up formB (and form A is not closed), can a sub in form B
cause mysub in form A to run?

If so, what is the syntax to get form B to call mysub?

Thanks, Dave H.
 
Call Form_Form_A.MySub

Above assumes that Form_A is the correct representation (see the VBA project
explorer window) for Form A, as a form name in this sub call cannot have a
space in it.
 
Back
Top