PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook VBA Programming Notes folder changed to mail folder

Reply

Notes folder changed to mail folder

 
Thread Tools Rate Thread
Old 13-02-2004, 02:06 PM   #1
=?Utf-8?B?VGllc2tl?=
Guest
 
Posts: n/a
Default Notes folder changed to mail folder


I have a problem with my default "Notes" folder. For some reason it changed into a "Mail" folder. The Icon in the folder tree shows a mailfolder icon, the notes in the folder are still notes. The available views are only the mail related ones.

I cannot delete it and make a new one, because it is the default notes folder.

When I run the following code;

Private Sub CheckNotesFolder()
Dim myFolder As MAPIFolder

Set myFolder = Application.GetNamespace("MAPI").GetDefaultFolder(olFolderNotes)

Debug.Print "Def.ItemType : " & myFolder.DefaultItemType
Select Case myFolder.DefaultItemType
Case olAppointmentItem
Debug.Print " : olAppointmentItem"
Case olContactItem
Debug.Print " : olContactItem"
Case olDistributionListItem
Debug.Print " : olDistributionListItem"
Case olJournalItem
Debug.Print " : olJournalItem"
Case olMailItem
Debug.Print " : olMailItem"
Case olNoteItem
Debug.Print " : olNoteItem"
Case olPostItem
Debug.Print " : olPostItem"
Case olTaskItem
Debug.Print " : olTaskItem"
End Select
Debug.Print "Def.msg.class: " & myFolder.DefaultMessageClass

End Sub

The result is;
Def.ItemType : 0
: olMailItem
Def.msg.class: IPM.Note

The default ItemType should have been olNoteItem, and the defaultmessageclass should have been IPM.StickyNote
I tried all the options I could find. Also from VBA Itried to change it, but the mentioned properties for the default items & class are both read-only.

Can anybody help me out on this? My palm doesn't synchronize the notes anymore, probably because the notes folder is no notes folder anymore.....

Tieske.

  Reply With Quote
Old 13-02-2004, 02:56 PM   #2
Ken Slovak - [MVP - Outlook]
Guest
 
Posts: n/a
Default Re: Notes folder changed to mail folder

Try starting Outlook with the /resetfolders switch.

Open the Start, Run dialog and type in the following (don't enter the
quotes but make sure the space before the switch is there):
"outlook.exe /resetfolders" then press Enter. See if that helps.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginners Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Tieske" <anonymous@discussions.microsoft.com> wrote in message
news:30ED94E8-EC87-432B-A095-ACB9F65DFF42@microsoft.com...
> I have a problem with my default "Notes" folder. For some reason it

changed into a "Mail" folder. The Icon in the folder tree shows a
mailfolder icon, the notes in the folder are still notes. The
available views are only the mail related ones.
>
> I cannot delete it and make a new one, because it is the default

notes folder.
>
> When I run the following code;
>
> Private Sub CheckNotesFolder()
> Dim myFolder As MAPIFolder
>
> Set myFolder =

Application.GetNamespace("MAPI").GetDefaultFolder(olFolderNotes)
>
> Debug.Print "Def.ItemType : " & myFolder.DefaultItemType
> Select Case myFolder.DefaultItemType
> Case olAppointmentItem
> Debug.Print " : olAppointmentItem"
> Case olContactItem
> Debug.Print " : olContactItem"
> Case olDistributionListItem
> Debug.Print " : olDistributionListItem"
> Case olJournalItem
> Debug.Print " : olJournalItem"
> Case olMailItem
> Debug.Print " : olMailItem"
> Case olNoteItem
> Debug.Print " : olNoteItem"
> Case olPostItem
> Debug.Print " : olPostItem"
> Case olTaskItem
> Debug.Print " : olTaskItem"
> End Select
> Debug.Print "Def.msg.class: " & myFolder.DefaultMessageClass
>
> End Sub
>
> The result is;
> Def.ItemType : 0
> : olMailItem
> Def.msg.class: IPM.Note
>
> The default ItemType should have been olNoteItem, and the

defaultmessageclass should have been IPM.StickyNote
> I tried all the options I could find. Also from VBA Itried to change

it, but the mentioned properties for the default items & class are
both read-only.
>
> Can anybody help me out on this? My palm doesn't synchronize the

notes anymore, probably because the notes folder is no notes folder
anymore.....
>
> Tieske.
>



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

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