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

Pickfolder question



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 23rd 10, 12:32 AM posted to microsoft.public.outlook.program_vba
Salad
external usenet poster
 
Posts: 24
Default Pickfolder question

If I run
Set olfolder = olapp.GetNamespace("MAPI").PickFolder
and select a folder, the TypeName is always "MAPIFolder". Is there a
property or method to determine if it's an inbox item and not a contact
or journal item?
  #2  
Old February 23rd 10, 07:56 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Pickfolder question


See the object browser (f2) for what properties are available for a
MapiFolder object. The one you're looking for is DefaultItemType.

--
Best regards
Michael Bauer - MVP Outlook
Manage and share your categories:
http://www.vboffice.net/product.html?pub=6&lang=en



Am Mon, 22 Feb 2010 16:32:34 -0800 schrieb Salad:

If I run
Set olfolder = olapp.GetNamespace("MAPI").PickFolder
and select a folder, the TypeName is always "MAPIFolder". Is there a
property or method to determine if it's an inbox item and not a contact
or journal item?

  #3  
Old February 23rd 10, 12:57 PM posted to microsoft.public.outlook.program_vba
Salad
external usenet poster
 
Posts: 24
Default Pickfolder question

Michael Bauer [MVP - Outlook] wrote:

See the object browser (f2) for what properties are available for a
MapiFolder object. The one you're looking for is DefaultItemType.


Thank you. I came up with
Inbox - 0
Calendar - 1
Contacts - 2
Tasks - 3
Journal - 4
Notes - 5

PersonalFolders was 0 as well as Inbox. I dragged a couple of messages
to PersonalFolders, it says it has 2 items in it, but I can't view them
now, it's like they disappeared.
  #4  
Old February 23rd 10, 04:39 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Pickfolder question

Is it because you have "Outlook Today" displayed for the top level folder?

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Salad" wrote in message
m...
Michael Bauer [MVP - Outlook] wrote:

See the object browser (f2) for what properties are available for a
MapiFolder object. The one you're looking for is DefaultItemType.


Thank you. I came up with
Inbox - 0
Calendar - 1
Contacts - 2
Tasks - 3
Journal - 4
Notes - 5

PersonalFolders was 0 as well as Inbox. I dragged a couple of messages to
PersonalFolders, it says it has 2 items in it, but I can't view them now,
it's like they disappeared.



  #5  
Old February 23rd 10, 06:59 PM posted to microsoft.public.outlook.program_vba
Salad
external usenet poster
 
Posts: 24
Default Pickfolder question

Dmitry Streblechenko wrote:
Is it because you have "Outlook Today" displayed for the top level folder?

I wish I knew what to reply. I dragged 5 old emails of various dates to
Personal Folders. If I dbl-click on the Personal Folders, the window
"Outlook Today" appears.

On the right side of the window is "Inbox;Drafts;Outbox;Personal
Folders". They all show a count to the right of each name except for
Personal Folders. Each folder has a line underneath it. For Personal
Folders, the line is truncated partway and the count does not
display...like it's empty.

If I double click on it, I get a "runtime error has occurred. Do you
wish to debug? Line 297. Access is denied." The line it breaks on is
document.all.dateScript.innerHTML = window.external.GetDate();

After I see the runtime error message, whether or not I enter debug
mode, if I click on Inbox or any of the others folders and then click on
Personal Folders I get a large grey window with a line in the middle in
big bold letters saying "Unable to display the folder. Microsoft Office
Outlook could not access the specified folder location."

Besides that, everything else seems to run OK. This is on a standalone
PC. If I exit Outlook and return, I'm fine unless I double click on
Personal Folders again.

  #6  
Old February 23rd 10, 10:18 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Pickfolder question

So I am not sure what you are trying to accomplish: if you do not want to
see the Outlook Today web page, you can trun it off in the folder properties
(RMB on the folder, Properties, Home Page).
Or do not drag messages to that folder

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Salad" wrote in message
...
Dmitry Streblechenko wrote:
Is it because you have "Outlook Today" displayed for the top level
folder?

I wish I knew what to reply. I dragged 5 old emails of various dates to
Personal Folders. If I dbl-click on the Personal Folders, the window
"Outlook Today" appears.

On the right side of the window is "Inbox;Drafts;Outbox;Personal Folders".
They all show a count to the right of each name except for Personal
Folders. Each folder has a line underneath it. For Personal Folders,
the line is truncated partway and the count does not display...like it's
empty.

If I double click on it, I get a "runtime error has occurred. Do you wish
to debug? Line 297. Access is denied." The line it breaks on is
document.all.dateScript.innerHTML = window.external.GetDate();

After I see the runtime error message, whether or not I enter debug mode,
if I click on Inbox or any of the others folders and then click on
Personal Folders I get a large grey window with a line in the middle in
big bold letters saying "Unable to display the folder. Microsoft Office
Outlook could not access the specified folder location."

Besides that, everything else seems to run OK. This is on a standalone
PC. If I exit Outlook and return, I'm fine unless I double click on
Personal Folders again.



 




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
set the initial folder in PickFolder sd[_2_] Add-ins for Outlook 1 February 23rd 10 04:41 PM
Redemption Pickfolder at offline throws an error Bert_Bert[_2_] Add-ins for Outlook 2 October 29th 08 09:21 PM
changing the title of the pickfolder dialog Southern at Heart Outlook and VBA 2 February 13th 08 12:34 PM
Pickfolder dialog box in Outlook event Irene Outlook and VBA 1 May 2nd 07 01:54 PM
Get Public Folder Name - Automate PickFolder function FondaUK Outlook - Using Forms 5 December 7th 06 04:30 PM


All times are GMT +1. The time now is 10:36 AM.


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.