How do I add Icon to Toolbar?

A

Adam.Effinger

I have a finished-working macro that I want to make it easier to get to
I would like to create an icon in a toolbar to access the userform wit
this macro. Any hints in this one
 
R

Rick Rothstein

Right click a blank area on the Toolbar, select Custom from the popup menu
that appears, select the Commands tab on the dialog box that appeared,
scroll down to the Macros entry in the Categories list, select the Custom
Button item in the Commands list and then click drag it onto the Toolbar.
After you release the mouse button, there will be a new icon on the Toolbar;
next, click the Modify Selection button that is on the dialog box and select
Assign Macro from the popup menu and complete the selection on the next
dialog box to appear. Then click the Modify Selection button again and
select Change Button Image if you want to use a different icon symbol for
your button. You can also play with some of the other items on the popup
menu from the Modify Selection button.
 
A

Adam.Effinger

The solutions that you two have the same problem. They don't sa
anything about a userform (which I use). I couldn't find anything t
solve that.
 
R

Rick Rothstein

What did you mean when you said "access the userform with this macro" in
your original posting? I figured you were already showing the UserForm from
that macro. If not, why not? The line you would need to add to your macro
(presuming it is not already there) is this...

UserForm1.Show

where I am assuming your UserForm is named UserForm1.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top