Labelling a macro button (Outlook 2003)

G

Guest

I've written a tiny piece of VBA code in Outlook 2003 to create a new message
with a specific string inserted in the subject line. All I want to do now is
create a meaningful command button to launch the code. If I create a custom
toolbar in the Outlook interface, I can add a button to it which launches my
macro, but the icon is the VBA icon and the button is labelled with
"project1.subname" where subname is the name of the vb code procedure.
Apparently in earlier versions of Outlook it was possible to right click on
the button and rename it, but this doesn't work in 2003.
Is there any way I can at least change the text on the button, better still
to change the icon as well? Labelling the macro this way is fine as a
default but it's ugly.

Rob
 
Y

yajiv.vijay

Right click on the toolbar and place the desired macro on the tool
bar.
With the customize dialog still open, right click on the newly added
macro.
In the context menu, there will be a text box containing your
project1.macro name.
Now you can very well rename it. you can even copy a outlook button
image and paste it to your button.
All you have to do is, let the customize dialog open and do things.
Is it working? let me know... :)
 
G

Guest

With the customize dialog still open, right click on the newly added
macro [button].

Aha! This is the key piece of information. Without the Customize dialog
open, the right click on the button doesn't provide the required context
menu. I was expecting to be able to modify the button behaviour *within* the
dialog box, and didn't expect to be able to modify objects *outside* the
dialog box.

Thanks!
Rob
 

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