Passing Parameters to a Macro Via a Toolbar

A

Agglomerator

I have alot of mail that I'm constantly moving to subfolders, so I
want to add a Custom Toolbar that has a macro associated with it, and
pass it a parameter, which is the name of the folder to move the msgs
to.

For example, macro named "ItemMove" which moves the selected msgs to a
a folder. I want to add a toolbar and assign a macro to it,
specifying the macro and paramter to be executed to be "ItemMove
MyFolder". The ItemMove macro would execute, moving the selected msgs
to "Myfolder", which is a parameter the macro is expecting.

I can't figure out how to do this for the life of me. I've seen the
onaction command, but it seems like I have to hard code the macro with
it.

Any help appreciated.

Thanks.

Agglomerator.
 
B

Brian Tillman [MVP - Outlook]

I have alot of mail that I'm constantly moving to subfolders, so I
want to add a Custom Toolbar that has a macro associated with it, and
pass it a parameter, which is the name of the folder to move the msgs
to.

Programming questions belong in microsoft.public.outlook.program_vba
 

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