Pickfolder question

S

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?
 
M

Michael Bauer [MVP - Outlook]

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:
 
S

Salad

Michael said:
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.
 
S

Salad

Dmitry said:
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.
 
D

Dmitry Streblechenko

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
-
 
S

Salad

Dmitry said:
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
Is this under File/Folders/Properties in Outlook? I turned the Personal
Folder under the HomePage tab. That hides the page. But I can still
drag messages to Personal Folders in the the FolderList window...which
is what I did.

I'll run some code to remove the emails from Personal Folders. I'm just
wondering if my emails, dated a couple of years ago, taken from a couple
of inbox subfolders, threw it off.

Thanks for the advice on turning off the page.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top