toolbar button for Vba code!

  • Thread starter Thread starter Legacy 169354
  • Start date Start date
L

Legacy 169354

Guest
Hi,

I have made a vba code/userform, and I would like to activate it after i close it by having a toolbar button. How do I define a macro that excel can see and then assign a button to it!??

Thanks!
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
it's not possible to say without knowing if you are using Excel 2003 or Excel 2007/2010. Toolbars changed dramatically between these versions. This is pretty common so I'd suggest you google something like Excel assign macro toolbar button

ξ
 
Upvote 0
It's hard to describe but if you figure out how to customize your toolbar, you can also see that you can add a custom toolbar button to the menu from the choice of menus to customize. You just drag it up to (any) toolbar in any location. Once you've added this toolbar button, leave the edit toolbar dialog open and right click on it - there are many options such as changing the image, and (of course) assigning a macro. Then you are good to go.

Figure out how to just add or remove a toolbar button. From there, its a short step to a custom button.

Google is (still) your friend - I can't but believe there are many examples. Probably even YouTube videos now.
 
Upvote 0

Forum statistics

Threads
1,224,505
Messages
6,179,147
Members
452,891
Latest member
JUSTOUTOFMYREACH

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