A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Archieve email



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 13th 07, 04:46 PM posted to microsoft.public.outlook.program_vba
Lasse
external usenet poster
 
Posts: 11
Default Archieve email

Hi

We use public folders today where we have a folder for each customer. I
would like to create an easy way for our users to move a selected e-mail to
the public folders just by activating a button in the mail and typing the
customer number!
If a public folder exists with the same customer number then move the mail
to that folder, if the folder doesn't exist then create the folder and then
move the mail.

Any one?
  #2  
Old September 13th 07, 07:30 PM posted to microsoft.public.outlook.program_vba
Eric Legault [MVP - Outlook]
external usenet poster
 
Posts: 830
Default Archieve email

Have you started coding this yet? Do you have any particular questions
regarding the architecture or implementation of this solution? Or are you
just looking for someone to do this for you?

--
Eric Legault - Outlook MVP, MCDBA, MCTS (SharePoint programming, etc.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Lasse" wrote:

Hi

We use public folders today where we have a folder for each customer. I
would like to create an easy way for our users to move a selected e-mail to
the public folders just by activating a button in the mail and typing the
customer number!
If a public folder exists with the same customer number then move the mail
to that folder, if the folder doesn't exist then create the folder and then
move the mail.

Any one?

  #3  
Old September 14th 07, 08:14 AM posted to microsoft.public.outlook.program_vba
Lasse
external usenet poster
 
Posts: 11
Default Archieve email

I have made a bit of the code. I am having trouble using the public folders,
is it possible to make some code that shows me all the folders?

"Eric Legault [MVP - Outlook]" wrote:

Have you started coding this yet? Do you have any particular questions
regarding the architecture or implementation of this solution? Or are you
just looking for someone to do this for you?

--
Eric Legault - Outlook MVP, MCDBA, MCTS (SharePoint programming, etc.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Lasse" wrote:

Hi

We use public folders today where we have a folder for each customer. I
would like to create an easy way for our users to move a selected e-mail to
the public folders just by activating a button in the mail and typing the
customer number!
If a public folder exists with the same customer number then move the mail
to that folder, if the folder doesn't exist then create the folder and then
move the mail.

Any one?

  #4  
Old September 14th 07, 04:54 PM posted to microsoft.public.outlook.program_vba
Eric Legault [MVP - Outlook]
external usenet poster
 
Posts: 830
Default Archieve email

Do you want to display a Public Folder in the Outlook folder list so that it
is active and displaying the folder contents? Or do you just need a
MAPIFolder object for a specific folder?

The code below shows how to retrieve the base collection for the Public
Folders - you can then "walk" the Folders collections to locate a specific
node in the hierarchy.

Sub ParseInfoStores()
Dim objNS As Outlook.NameSpace
Dim objFav As Outlook.MAPIFolder, objPFRoot As Outlook.MAPIFolder
Dim objFolder As Outlook.MAPIFolder, objAllPF As Outlook.MAPIFolder

Set objNS = Application.GetNamespace("MAPI")
Set objAllPF = objNS.GetDefaultFolder(olPublicFoldersAllPublicFol ders)
Set objPFRoot = objAllPF.Parent
Set objFav = objPFRoot.Folders("Favorites")

Set objNS = Nothing
Set objAllPF = Nothing
Set objPFRoot = Nothing
Set objFolder = Nothing
End Sub

--
Eric Legault - Outlook MVP, MCDBA, MCTS (SharePoint programming, etc.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Lasse" wrote:

I have made a bit of the code. I am having trouble using the public folders,
is it possible to make some code that shows me all the folders?

"Eric Legault [MVP - Outlook]" wrote:

Have you started coding this yet? Do you have any particular questions
regarding the architecture or implementation of this solution? Or are you
just looking for someone to do this for you?

--
Eric Legault - Outlook MVP, MCDBA, MCTS (SharePoint programming, etc.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Lasse" wrote:

Hi

We use public folders today where we have a folder for each customer. I
would like to create an easy way for our users to move a selected e-mail to
the public folders just by activating a button in the mail and typing the
customer number!
If a public folder exists with the same customer number then move the mail
to that folder, if the folder doesn't exist then create the folder and then
move the mail.

Any one?

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto archieve settings cs Outlook - Calandaring 2 July 16th 07 05:22 AM
Get Public/Archieve Folders Path Name Vadhimoo Outlook and VBA 2 November 20th 06 04:39 PM
Importing Contact Archieve (Outlook 2000) Michele Dickinson Outlook - Using Contacts 1 March 2nd 06 07:38 PM


All times are GMT +1. The time now is 08:31 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.