ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Calling Forms by their Caption? (https://www.excelbanter.com/excel-programming/408066-calling-forms-their-caption.html)

NateBuckley

Calling Forms by their Caption?
 
Is it possible to go through all the user forms and only load up the one with
the name I want.

So If I had a form called "frmMain" and a ton of others, would it be
possible (before loading the form) to go through these forms and use a string
"frmMain" to load it up?

Thanks in advance. Hopefully that was clear enough.

Chip Pearson

Calling Forms by their Caption?
 
See http://www.cpearson.com/Excel/ShowAnyForm.htm for code to do this.


--
Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)




"NateBuckley" wrote in message
...
Is it possible to go through all the user forms and only load up the one
with
the name I want.

So If I had a form called "frmMain" and a ton of others, would it be
possible (before loading the form) to go through these forms and use a
string
"frmMain" to load it up?

Thanks in advance. Hopefully that was clear enough.




All times are GMT +1. The time now is 10:19 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com