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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running macros from drop down box on user form 3

Status
Not open for further replies.

teebird

Technical User
Dec 11, 2001
239
Hi

Excel 97 - I would like to have all my macros appear in a drop down box on a form and when the user selects one - the marco will run.

Tee
 
Tee,

and anyone else interested. I've put together a workbook to do what you want. It contains a userform with a dropdown that lists the macros in the workbook. Once selected, the macro is run by clicking a command button on the form. It's probably easiest to send this out to those interested. Just post your email address. If you really want me to post the code, I can.

BTW, this procedure recognizes (and lists) as "macros" only those Subs that take no parameters (just as Excel itself does). It also excludes itself from the listing.

Regards,
M. Smith
 
Hi Mike - wouldn't mind a copy if that's ok
Geoff.Barraclough@PunchPubs.co.uk
Cheers Rgds
~Geoff~
 
Hi Mike

Many thanks for your reply.

email is: teebird@austarnet.com.au

Regards Tee

 
Havce a star m8 - very nice bit o' code
Mike or Robert ??
Apologies for calling you Mike for ages if it is Rob %-) Rgds
~Geoff~
 
Thanks Geoff --

No need to apologize... It's Mike (a guy's gotta have an alias or two [wink])

Regards,
Mike
 
Hello Mike,

If you have the time, I would very much appreciate a copy of the workbook you mentioned above.

excelclass@hotmail.com

Thanks very much! -Bob in California

 
Hi Mike,

This sounds like a good routine to have in my library.

Sure will appreciate a copy.

Thanks. ...Dale Watson dwatson@bsi.gov.mb.ca
 
Hello

I would appreciate a copy
Thanks in advance
Dave

DDeegan@asicentral.com
 
I would love a copy as well..
Thanks in advance.

demitrius.Triantafylidis@ahlstrom.com

or methoni7@aol.com
 
Thanks for the code, Mike. You deserve another STAR! -Bob in California

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top