View Single Post
  #5  
Old June 24th 09, 07:15 PM posted to microsoft.public.outlook.program_forms
spottedmahn
external usenet poster
 
Posts: 16
Default Categories Not Saved

Hi Ken, thanks again for the response.

Yes the both branches of that if else are being executed. I put a
breakpoint in each of them and stepped thru the code.

Here is a screen shot of what is happening:
http://spottedmahn.spaces.live.com/b...016B!407.entry


"Ken Slovak - [MVP - Outlook]" wrote:

The line that I see on a brief scan of the code that actually adds a new
category to the Categories collection is this:

this.olNS.Categories.Add(Cat.Name, Cat.Color, Cat.ShortcutKey);

Are you sure this line is actually being executed in your code? Maybe add a
Debug.Writeline() call just before that line to verify it is being hit,
otherwise whatever you do won't persist.


Ads