Script To Call Workbook Macros

Jaye7

Well-known Member
Joined
Jul 7, 2010
Messages
1,069
This may sound stupid as you can already do this via the toolbars, however.

Can anyone please provide a script that will call the macro popup list (list of all macros and then you can select which to run) as I want to activate it via a form that is in my workbook as I use different versions off excel on different computers and want to be able to call the popup list from my form, so I don't have to remember where it is in each version.

Thanks.;)
 
thanks misterbate but I am not that good with scripts and don't know what I am supposed to look for and how to use the script.

I searched through the dialogs options and only found the following script which bugs out.

Application.Dialogs(xlDialogMacroOptions).Show

Is there some other script that I should be looking for??????
 
Upvote 0
There's not another script you should be looking for, and I must admit I expected that the dialogs object would work. I just tried it and it doesn't work for me either.

Apologies, I don't know of another way you might be able to show the "Macros" dialog box.
 
Upvote 0
I think the code you're looking for is

Code:
Application.Dialogs(xlDialogRun).Show

This one here

Code:
Application.Dialogs(xlDialogMacroOptions).Show

requires you to name the macro as it shows the options for the particular macro, correct syntax being....

Code:
Application.Dialogs(xlDialogMacroOptions).Show ("MacroName")
 
Upvote 0

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top