Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

outlook 2003 filing email button

Status
Not open for further replies.

unsworthcl

IS-IT--Management
Mar 22, 2005
22
0
0
GB
I been asked to create a button that files emails to a specific public folder on a click.

Haven't created a macro in years and not sure where to start!

Searched the net on VB macros, but cannot find any for filing emails.

Anyone got any ideas?

 
This might help:

Dim nms As NameSpace, sel As Selection ', fld As MAPIFolder

Set sel = Application.ActiveExplorer.Selection
Set nms = Application.GetNamespace("MAPI")
Set fld = nms.Folders("MainFolder").Folders("SubFolder1").Folders("SubfFolder2") 'Keep using .Folders until you get to the folder you want

For Each thing In sel
thing.Move (fld)
Next thing
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top