Calling subs in another form

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.
 
K

Ken Snell [MVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top