View Single Post
  #6  
Old August 3rd 09, 03:21 PM posted to microsoft.public.outlook.program_vba
newED[_3_]
external usenet poster
 
Posts: 1
Default A code that adds category to an outgoing mail message in outlook


'Ken Slovak - [MVP - Outlook Wrote:
;439563']The suggestion I made was only if the code is running in the
Outlook VBA
project, not in Excel or some other application. Is the code running
in
Outlook? If not then go back to using CreateObject().

Unless there's additional code you haven't shown, the code you did show
does
nothing to touch Subject so I can't see how the subject would be
blanked.

--
Ken Slovak
[MVP - Outlook]
'Slovak Technical Services Home' (http://www.slovaktech.com)
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
'Slovak Technical Services Products'
(http://www.slovaktech.com/products.htm)


"newED" wrote in message
...

thank Ken,

unfortunately, it does get blank everytime I use this code.

Btw, I tried your offered suggestion. However I'm not quite sure I
understood it, because now I get a compile error:
" Method or data not found" - with the new code line highlighted

should I make anymore changes in the code so that your offered

change
would work?

Thanks




I found a different way to overcome this problem, withoutthe creating a
new object.
Anyway, it sloved my problem.
Thanks


--
newED
------------------------------------------------------------------------
newED's Profile: http://www.thecodecage.com/forumz/member.php?userid=603
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=121671

Ads