msvisual.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How do I access Outlook Public folders

 
Post new topic   Reply to topic    msvisual.com Forum Index -> VB Enterprise
Author Message
Dwight



Joined: 04 Oct 2007
Posts: 7

PostPosted: Mon Aug 13, 2007 12:22 pm    Post subject: How do I access Outlook Public folders Reply with quote

Hi

I am using the following snippet below to read from a Outlook subfolder
which works well but how do I reference a Public subfolder

Works -
Dim oInbox As Outlook.MAPIFolder =
oNS.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderInbox)
SubFolder = oInbox.Folders("test")

How would I change this to reference the public folder located at -
/public folders/all public folders/internalcompany/scan

TIA
Dwight

Archived from group: microsoft>public>vb>enterprise
Back to top
View user's profile Send private message
Bob Butler



Joined: 04 Oct 2007
Posts: 1081

PostPosted: Mon Aug 13, 2007 12:41 pm    Post subject: Re: How do I access Outlook Public folders Reply with quote

"Dwight" wrote in message @microsoft.com...
> Hi
>
> I am using the following snippet below to read from a Outlook subfolder
> which works well but how do I reference a Public subfolder
>
> Works -
> Dim oInbox As Outlook.MAPIFolder =
> oNS.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderInbox)
> SubFolder = oInbox.Folders("test")
>
> How would I change this to reference the public folder located at -
> /public folders/all public folders/internalcompany/scan

With that syntax you are using VB.Net, not VB, so you are in the wrong
place.


--
You need to ask in a newsgroup with "dotnet" in the name. This group is for
VB 6.0 and earlier and does not include VB.Net or VB 200x.
Back to top
View user's profile Send private message
Dwight



Joined: 04 Oct 2007
Posts: 7

PostPosted: Tue Aug 14, 2007 4:58 am    Post subject: Re: How do I access Outlook Public folders Reply with quote

Sorry, that was .NET code, the problem is within VB6. Do you know how I can
access a public folder (eg /public folders/all public
folders/internalcompany/scan) from VB6 code.

I can access the Inbox that I am logged in as but I do not know how to
access a public folder folder using VB6 (sp6).

Any assistance woul dbe greatly appreciated.

TIA
Dwight


"Bob Butler" wrote:

> "Dwight" wrote in message
> @microsoft.com...
> > Hi
> >
> > I am using the following snippet below to read from a Outlook subfolder
> > which works well but how do I reference a Public subfolder
> >
> > Works -
> > Dim oInbox As Outlook.MAPIFolder =
> > oNS.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderInbox)
> > SubFolder = oInbox.Folders("test")
> >
> > How would I change this to reference the public folder located at -
> > /public folders/all public folders/internalcompany/scan
>
> With that syntax you are using VB.Net, not VB, so you are in the wrong
> place.
>
>
> --
> You need to ask in a newsgroup with "dotnet" in the name. This group is for
> VB 6.0 and earlier and does not include VB.Net or VB 200x.
>
>

Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
accessing Public Folders all -- I am not a vb programmer by trade, so go easy on me ... the goal is to copy emails from a public folder and dump them into a text file ... for import into a mysql db. I've tried using the MAPIFolder namespace, but I can't access the public folder s

cannot access a public method of a form from another form Hi there, I have a MDI child form with some public methods (or interfaces) called Save_Me and Refresh_Me. Save_Me will tell the form to save the data to the database. Refresh_Me will tell the form to load the data from the database. I have a parent form t

Form level Public Variables Hi I was hoping some one could give me a good reason not to use Form level Public variables. I cant think of a reason why I shouldn't. The reason I want to use them is that I have a few almost generic forms in my application with a few subtle differences

Error "No creatable public component detected" I get the error "No creatable public component detected" when trying to compile a new VB application I am starting. When I press F1 for more information, the error is listed as "No creatable public class module detected". What is causing this error and h

REQ:Commandline files and folders Hi, I' am creating an application with a command line option. The user can select files and folders from the command line or the Windows Explorer context menu. Everything goes fine when the folder is a normal folder and the file is a normal file. I used t
Post new topic   Reply to topic    msvisual.com Forum Index -> VB Enterprise All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group