![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
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
|
|||
|
|||
![]() 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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
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 |