T
Tye Davis
TO: Sue Mosher or anyone else who can assist me
Senerio: I am setting up a macro Ctl Alt+L to forward to
John Doe all the items found in Folders named Project1,
Project2, Project3.
Outlook Setup is:
Inbox Folder
Company Project
Project1
Project2
Project3
Company Marketing
Company Documents
Journals
Notes
Outbox
Send
Tasks
Using the information Sue supplied, I came up with this:
Set myOlApp = CreateObject ("Outlook.Application")
Set myNameSpace = myOlApp.GetNameSpace ("MAPI")
Set myFolder = myNameSpace.Project1Folder
(olFolderProject1)
Set myForward = myFolder.Items.Forward
myForward.Recipients.Add "John Davis"
myForward.Send
Set myFolder = myNameSpace.Project2Folder
(olFolderProject2)
Set myForward = myFolder.Items.Forward
myForward.Recipients.Add "Dan Davis"
myForward.Send
Set myFolder = myNameSpace.Project2Folder
(olFolderProject2)
Set myForward = myFolder.Items.Forward
myForward.Recipients.Add "Charles Davis"
myForward.Send
Is this correct? Do I set the macro on the Company Project
Folder or the first project folder?
Thanks in advance!
Tye Davis
Senerio: I am setting up a macro Ctl Alt+L to forward to
John Doe all the items found in Folders named Project1,
Project2, Project3.
Outlook Setup is:
Inbox Folder
Company Project
Project1
Project2
Project3
Company Marketing
Company Documents
Journals
Notes
Outbox
Send
Tasks
Using the information Sue supplied, I came up with this:
Set myOlApp = CreateObject ("Outlook.Application")
Set myNameSpace = myOlApp.GetNameSpace ("MAPI")
Set myFolder = myNameSpace.Project1Folder
(olFolderProject1)
Set myForward = myFolder.Items.Forward
myForward.Recipients.Add "John Davis"
myForward.Send
Set myFolder = myNameSpace.Project2Folder
(olFolderProject2)
Set myForward = myFolder.Items.Forward
myForward.Recipients.Add "Dan Davis"
myForward.Send
Set myFolder = myNameSpace.Project2Folder
(olFolderProject2)
Set myForward = myFolder.Items.Forward
myForward.Recipients.Add "Charles Davis"
myForward.Send
Is this correct? Do I set the macro on the Company Project
Folder or the first project folder?
Thanks in advance!
Tye Davis