PC Review


Reply
Thread Tools Rate Thread

add note to body or notes

 
 
Joel Allen
Guest
Posts: n/a
 
      17th Feb 2010
Outlook 2003 SP1

Hi,

The following script adds a note to existing notes in the notes field.

'-----------------
Sub CommandButtonNewEntry_Click()
On Error Resume Next
Item.Body = Now() & " " & pCurUserName & ": " & vbCrLf & vbCrLf & Item.Body
End Sub
'-----------------

My problem is that all the formatting is lost and turns it to plain text.
Any ideas on how to keep the formatting that exists in the notes field?

Thanks, Joel


 
Reply With Quote
 
 
 
 
Michael Bauer [MVP - Outlook]
Guest
Posts: n/a
 
      17th Feb 2010


Depends on the item. If it's an email, it's probably html, so read/write the
stuff from/into the HTMLBody property.

--
Best regards
Michael Bauer - MVP Outlook
Manage and share your categories:
<http://www.vboffice.net/product.html?pub=6&lang=en>


Am Wed, 17 Feb 2010 07:42:20 -0800 schrieb Joel Allen:

> Outlook 2003 SP1
>
> Hi,
>
> The following script adds a note to existing notes in the notes field.
>
> '-----------------
> Sub CommandButtonNewEntry_Click()
> On Error Resume Next
> Item.Body = Now() & " " & pCurUserName & ": " & vbCrLf & vbCrLf &

Item.Body
> End Sub
> '-----------------
>
> My problem is that all the formatting is lost and turns it to plain text.
> Any ideas on how to keep the formatting that exists in the notes field?
>
> Thanks, Joel

 
Reply With Quote
 
Joel Allen
Guest
Posts: n/a
 
      17th Feb 2010
No, it's a custom Task item. Any ideas?

"Michael Bauer [MVP - Outlook]" <(E-Mail Removed)> wrote in message
news:sz4da217ierw$.(E-Mail Removed)...
>
>
> Depends on the item. If it's an email, it's probably html, so read/write
> the
> stuff from/into the HTMLBody property.
>
> --
> Best regards
> Michael Bauer - MVP Outlook
> Manage and share your categories:
> <http://www.vboffice.net/product.html?pub=6&lang=en>
>
>
> Am Wed, 17 Feb 2010 07:42:20 -0800 schrieb Joel Allen:
>
>> Outlook 2003 SP1
>>
>> Hi,
>>
>> The following script adds a note to existing notes in the notes field.
>>
>> '-----------------
>> Sub CommandButtonNewEntry_Click()
>> On Error Resume Next
>> Item.Body = Now() & " " & pCurUserName & ": " & vbCrLf & vbCrLf &

> Item.Body
>> End Sub
>> '-----------------
>>
>> My problem is that all the formatting is lost and turns it to plain text.
>> Any ideas on how to keep the formatting that exists in the notes field?
>>
>> Thanks, Joel



 
Reply With Quote
 
Dmitry Streblechenko
Guest
Posts: n/a
 
      17th Feb 2010
Tasks and appointments store the body in RTF.
You would need to use either Extended MAPI (C++ or Delphi only) or
<plug>Redemption (url below) - set the SafeTaskItem.RtfBody property</plug>

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Joel Allen" <(E-Mail Removed)> wrote in message
news:uk%23FYe$(E-Mail Removed)...
> No, it's a custom Task item. Any ideas?
>
> "Michael Bauer [MVP - Outlook]" <(E-Mail Removed)> wrote in message
> news:sz4da217ierw$.(E-Mail Removed)...
>>
>>
>> Depends on the item. If it's an email, it's probably html, so read/write
>> the
>> stuff from/into the HTMLBody property.
>>
>> --
>> Best regards
>> Michael Bauer - MVP Outlook
>> Manage and share your categories:
>> <http://www.vboffice.net/product.html?pub=6&lang=en>
>>
>>
>> Am Wed, 17 Feb 2010 07:42:20 -0800 schrieb Joel Allen:
>>
>>> Outlook 2003 SP1
>>>
>>> Hi,
>>>
>>> The following script adds a note to existing notes in the notes field.
>>>
>>> '-----------------
>>> Sub CommandButtonNewEntry_Click()
>>> On Error Resume Next
>>> Item.Body = Now() & " " & pCurUserName & ": " & vbCrLf & vbCrLf &

>> Item.Body
>>> End Sub
>>> '-----------------
>>>
>>> My problem is that all the formatting is lost and turns it to plain
>>> text.
>>> Any ideas on how to keep the formatting that exists in the notes field?
>>>
>>> Thanks, Joel

>
>



 
Reply With Quote
 
Joel Allen
Guest
Posts: n/a
 
      18th Feb 2010

Redemption seems like the solution to me. If I bought it and installed it
on my computer, will the code still work on other users computers, or do I
need to install redemption on everyone's computer?


"Dmitry Streblechenko" <(E-Mail Removed)> wrote in message
news:uo%(E-Mail Removed)...
> Tasks and appointments store the body in RTF.
> You would need to use either Extended MAPI (C++ or Delphi only) or
> <plug>Redemption (url below) - set the SafeTaskItem.RtfBody
> property</plug>
>
> --
> Dmitry Streblechenko (MVP)
> http://www.dimastr.com/
> OutlookSpy - Outlook, CDO
> and MAPI Developer Tool
> -
> "Joel Allen" <(E-Mail Removed)> wrote in message
> news:uk%23FYe$(E-Mail Removed)...
>> No, it's a custom Task item. Any ideas?
>>
>> "Michael Bauer [MVP - Outlook]" <(E-Mail Removed)> wrote in message
>> news:sz4da217ierw$.(E-Mail Removed)...
>>>
>>>
>>> Depends on the item. If it's an email, it's probably html, so read/write
>>> the
>>> stuff from/into the HTMLBody property.
>>>
>>> --
>>> Best regards
>>> Michael Bauer - MVP Outlook
>>> Manage and share your categories:
>>> <http://www.vboffice.net/product.html?pub=6&lang=en>
>>>
>>>
>>> Am Wed, 17 Feb 2010 07:42:20 -0800 schrieb Joel Allen:
>>>
>>>> Outlook 2003 SP1
>>>>
>>>> Hi,
>>>>
>>>> The following script adds a note to existing notes in the notes field.
>>>>
>>>> '-----------------
>>>> Sub CommandButtonNewEntry_Click()
>>>> On Error Resume Next
>>>> Item.Body = Now() & " " & pCurUserName & ": " & vbCrLf & vbCrLf &
>>> Item.Body
>>>> End Sub
>>>> '-----------------
>>>>
>>>> My problem is that all the formatting is lost and turns it to plain
>>>> text.
>>>> Any ideas on how to keep the formatting that exists in the notes field?
>>>>
>>>> Thanks, Joel

>>
>>

>
>



 
Reply With Quote
 
Dmitry Streblechenko
Guest
Posts: n/a
 
      18th Feb 2010
The dll woudl need to be installed on every computer where it is used. As
simple as copying the dll to a local folder and registering it with
regsvr32.exe will work.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Joel Allen" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Redemption seems like the solution to me. If I bought it and installed it
> on my computer, will the code still work on other users computers, or do I
> need to install redemption on everyone's computer?
>
>
> "Dmitry Streblechenko" <(E-Mail Removed)> wrote in message
> news:uo%(E-Mail Removed)...
>> Tasks and appointments store the body in RTF.
>> You would need to use either Extended MAPI (C++ or Delphi only) or
>> <plug>Redemption (url below) - set the SafeTaskItem.RtfBody
>> property</plug>
>>
>> --
>> Dmitry Streblechenko (MVP)
>> http://www.dimastr.com/
>> OutlookSpy - Outlook, CDO
>> and MAPI Developer Tool
>> -
>> "Joel Allen" <(E-Mail Removed)> wrote in message
>> news:uk%23FYe$(E-Mail Removed)...
>>> No, it's a custom Task item. Any ideas?
>>>
>>> "Michael Bauer [MVP - Outlook]" <(E-Mail Removed)> wrote in message
>>> news:sz4da217ierw$.(E-Mail Removed)...
>>>>
>>>>
>>>> Depends on the item. If it's an email, it's probably html, so
>>>> read/write the
>>>> stuff from/into the HTMLBody property.
>>>>
>>>> --
>>>> Best regards
>>>> Michael Bauer - MVP Outlook
>>>> Manage and share your categories:
>>>> <http://www.vboffice.net/product.html?pub=6&lang=en>
>>>>
>>>>
>>>> Am Wed, 17 Feb 2010 07:42:20 -0800 schrieb Joel Allen:
>>>>
>>>>> Outlook 2003 SP1
>>>>>
>>>>> Hi,
>>>>>
>>>>> The following script adds a note to existing notes in the notes field.
>>>>>
>>>>> '-----------------
>>>>> Sub CommandButtonNewEntry_Click()
>>>>> On Error Resume Next
>>>>> Item.Body = Now() & " " & pCurUserName & ": " & vbCrLf & vbCrLf &
>>>> Item.Body
>>>>> End Sub
>>>>> '-----------------
>>>>>
>>>>> My problem is that all the formatting is lost and turns it to plain
>>>>> text.
>>>>> Any ideas on how to keep the formatting that exists in the notes
>>>>> field?
>>>>>
>>>>> Thanks, Joel
>>>
>>>

>>
>>

>
>



 
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Show body/note text in week & day views paul.domaskis@gmail.com Microsoft Outlook Calendar 1 22nd Jan 2009 12:37 AM
Outlook 2007 - Getting Note Body =?Utf-8?B?RGFuaWVsTGlwa2ll?= Microsoft Outlook VBA Programming 6 27th May 2007 01:35 AM
How do I delete an endnote number in the body but keep note text =?Utf-8?B?ZGF2ZV9iYXJiaWU=?= Microsoft Word Document Management 4 6th Jun 2006 02:48 PM
how to remove the Note from the email body! Warner Microsoft Outlook Printing 0 5th Jul 2004 03:01 AM
how to remove the Note from the email body! Warner Microsoft Outlook Discussion 0 5th Jul 2004 02:59 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:54 AM.