? User Programable Icon On Toolbar

ColinKJ

Well-known Member
Joined
Jan 27, 2009
Messages
983
Hi All,

I have an application macro which displays a Userform which lists and lets me select/load my favorite XL WBs. It also lets me add and/or delete favorites.

At present, I have to activate it with a Ctrl+Key combination.

Is there anyway I can assign it to an icon on the toolbar.

Regards

ColiKJ
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Which version of Excel?
 
Upvote 0
Right click any Toolbar and choose Customize. On the Toolbars tab click New, change the name if you want and click OK. On the Commands tab click the Macros category, then click and drag the Custom Button onto your Toolbar. Right click the button and choose Assign Macro. Choose your macro then click Ok then Close.

That's the manual way to do it. For a programmatic solution see:

http://www.erlandsendata.no/english/index.php?d=envbacbmenuxl97
 
Upvote 0
Hi Andrew,

I've managed to get the new button on the toolbar with a new name, but when I right click, I can't see Assign Macro?.

Where am I going wrong.

Regards

ColinKJ
 
Upvote 0
Did you assign the macro while the customize dialog is still open?
 
Upvote 0
Just do View-Toolbars-Customize again, right-click the item you added, and choose Assign Macro.
 
Upvote 0
Hi All,

I've done it now, thanks alot everyone.

Don't know why I'm so fussey today, it must be something to do with those 5 bottle of wine I drank last night. Funny it dosen't normally have that effect on me. I must be getting old.

Thanks again.

ColinKJ
 
Upvote 0

Forum statistics

Threads
1,211,985
Messages
6,105,221
Members
447,957
Latest member
Basildon

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