Passing Parameters to a Macro Via a Toolbar

  • Thread starter Thread starter Agglomerator
  • Start date Start date
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.
 
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
 
Back
Top