Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook and VBA (http://www.outlookbanter.com/outlook-vba/)
-   -   Get the number of characters in Outlook (http://www.outlookbanter.com/outlook-vba/31521-get-number-characters-outlook.html)

Sanjay_S via OfficeKB.com October 31st 06 05:59 AM

Get the number of characters in Outlook
 
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

--
Message posted via http://www.officekb.com


Peter Marchert October 31st 06 06:17 AM

Get the number of characters in Outlook
 
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

--
Peter Marchert
[EDV-Service Marchert]
Homepage: http://www.marchert.de
Excel- und Outlookprogrammierung

Sanjay_S via OfficeKB.com schrieb:

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

--
Message posted via http://www.officekb.com




All times are GMT +1. The time now is 08:58 PM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com