Get the number of characters in Outlook

  • Thread starter Sanjay_S via OfficeKB.com
  • Start date
S

Sanjay_S via OfficeKB.com

Hi

I have written a custom plugin for my outlook.. I want to check the number of
characters typed in the message body.. where in it should not exceed 255
characters.. is it possible programmatically..

Thanks in advance

Sanjay
 
P

Peter Marchert

Use the body-property for this task: If Len(objMailItem.Body) > 255
Then MsgBox "Your text has " & Len(objMailItem.Body) & " characters.
The maximum is 255.", vbExclamation + vbOkOnly, "Mailcheck"

Peter
 
Top