? 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
 

Some videos you may like

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.

RoryA

MrExcel MVP, Moderator
Joined
May 2, 2008
Messages
36,067
Office Version
  1. 365
  2. 2019
  3. 2016
  4. 2010
Platform
  1. Windows
  2. MacOS
Which version of Excel?
 

Andrew Poulsom

MrExcel MVP
Joined
Jul 21, 2002
Messages
73,092
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
 

ColinKJ

Well-known Member
Joined
Jan 27, 2009
Messages
983

ADVERTISEMENT

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
 

RoryA

MrExcel MVP, Moderator
Joined
May 2, 2008
Messages
36,067
Office Version
  1. 365
  2. 2019
  3. 2016
  4. 2010
Platform
  1. Windows
  2. MacOS
Did you assign the macro while the customize dialog is still open?
 

ColinKJ

Well-known Member
Joined
Jan 27, 2009
Messages
983

ADVERTISEMENT

Hi rorya,

No I didn't, and now I can't remove it.!!.

ColinKJ
 

RoryA

MrExcel MVP, Moderator
Joined
May 2, 2008
Messages
36,067
Office Version
  1. 365
  2. 2019
  3. 2016
  4. 2010
Platform
  1. Windows
  2. MacOS
Just do View-Toolbars-Customize again, right-click the item you added, and choose Assign Macro.
 

ColinKJ

Well-known Member
Joined
Jan 27, 2009
Messages
983
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
 

Watch MrExcel Video

Forum statistics

Threads
1,122,577
Messages
5,596,996
Members
414,116
Latest member
sfullnet

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
Top