Hi Folks,
I am new to this forum. I hoping that someone would be generous with their time to help me create a macro that will create a new folder in Outlook and extract the content of the subject line as the name of the new folder.
I work in an environment with hundreds of emails and it would be nice if I can filter out emails from clients looking for a new quote for a job.
The code I found on the web is a basic start. However, I don't know enough VB programming to modify the script for my needs:
Sub CreateFolder()
Dim F As Outlook.Mapifolder
Dim Name$
Set F = Application.Session.Pickfolder
If F Is Nothing Then Exit Sub
Name = Inputbox("Name?")
If Len(Name) = 0 Then Exit Sub
Name = "Quote - " & "-" & Name
F.Folders.Add Name
End Sub
My wish list:
1) An option (pop up menu) to allow me to confirm or modify the new folder name after the text extracted from the subject line
or
2) An option to append the subject line text content to a prefix of folder name as already shown in the code above.
and
3) An option to pre-define where the new folder should be created.
4) An option to move a selected message or a set of selected messages automatically into this new folder.
5) Open this new folder, after it is created and the messages have been moved into it.
Thanks.
Si
I am new to this forum. I hoping that someone would be generous with their time to help me create a macro that will create a new folder in Outlook and extract the content of the subject line as the name of the new folder.
I work in an environment with hundreds of emails and it would be nice if I can filter out emails from clients looking for a new quote for a job.
The code I found on the web is a basic start. However, I don't know enough VB programming to modify the script for my needs:
Sub CreateFolder()
Dim F As Outlook.Mapifolder
Dim Name$
Set F = Application.Session.Pickfolder
If F Is Nothing Then Exit Sub
Name = Inputbox("Name?")
If Len(Name) = 0 Then Exit Sub
Name = "Quote - " & "-" & Name
F.Folders.Add Name
End Sub
My wish list:
1) An option (pop up menu) to allow me to confirm or modify the new folder name after the text extracted from the subject line
or
2) An option to append the subject line text content to a prefix of folder name as already shown in the code above.
and
3) An option to pre-define where the new folder should be created.
4) An option to move a selected message or a set of selected messages automatically into this new folder.
5) Open this new folder, after it is created and the messages have been moved into it.
Thanks.
Si