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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Outlook Public folders

Status
Not open for further replies.

JustNigel

Programmer
Dec 9, 2002
7
EU
Using the following I can hard code a move between folders.

I need to vary this for 100+ folders hopefully using an ini file. So far its been resisting my efforts to feed the path in as a variable - any suggestions gratefully accepted

'public folder path
set MyFolder = MyNamespace.folders("Public Folders").folders("All Public Folders").folders("business").folders("Organisation").folders("Office").folders("location").folders("Group").folders("Unit").folders("Development").folders("Remissions").folders("Remitted c495")

'simple code to move the form
myitem.move MyFolder

Please help

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top