Pickfolder question

Status
Not open for further replies.
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?
 

Michael Bauer

Senior Member
Outlook version
Outlook 2010 32 bit
Email Account
Exchange Server
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

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

Salad

Michael Bauer 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.
 
D

Dmitry Streblechenko

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

Dmitry Streblechenko (MVP)

-

"Salad" <salad@oilandvinegar.com> wrote in message

news:rOGdnXmqgJolTR7WnZ2dnUVZ_h6dnZ2d@earthlink.com...
> Michael Bauer 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.
 
S

Salad

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.
 
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)

-

"Salad" <salad@oilandvinegar.com> wrote in message

news:r9-dnfZhOJ0FuBnWnZ2dnUVZ_qmdnZ2d@earthlink.com...
> 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.
>
 
S

Salad

Dmitry Streblechenko wrote:
> 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.
 
Status
Not open for further replies.
Top