Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

access public sub from form

Status
Not open for further replies.

eHanSolo

Technical User
May 24, 2004
260
GB
hi there,

Is the following possible:

Currently writing some code in UserForm1 and i want to call a public sub from ModuleX.

Is this possible?

thanks.

 
just calling it by name doesn't work?

_________________
Bob Rashkin
 

And how you call that public sub from ModuleX? Does it expect any arguments? Does it run but no criteria are met to do the expected actions?
How about, you place a breakpoint at the start and call it form immediate window?
 
Just calling it should work:

Call ModuleX.YourSubName([parameters])

Does ModuleX reside in the same VBProject as the userform?

Cheers,

Roel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top