How to count the Reference Characters ? 
Author Message
 How to count the Reference Characters ?

hi,

how can I get the number of characters of the reference when writing emails
with Word2000 ?
I tried to use Selection.Characters.Count, but that doesn't work,  Selection
seems to refer only to the Document Text.
Any solutions ?

Thnx. =) VM



Wed, 22 Oct 2003 02:14:07 GMT  
 How to count the Reference Characters ?
Get the text into a string variable and get the Length of the string.

--
Ken Slovak
[MVP - Outlook]
Lead Author, Professional Outlook 2000 Programming, Wrox Press
Co-author of "Programming Microsoft Outlook 2000", Chapters 8-13,
Appendices, Sams


Quote:
> hi,

> how can I get the number of characters of the reference when writing
emails
> with Word2000 ?
> I tried to use Selection.Characters.Count, but that doesn't work,
Selection
> seems to refer only to the Document Text.
> Any solutions ?

> Thnx. =) VM



Wed, 22 Oct 2003 02:15:28 GMT  
 How to count the Reference Characters ?
Hi Ken,

sure but where can I find the Subject when writing an Email with Word2000.
ActiveDocument.GetLetterContent.Subject didn't work, cause no Subject was
saved there although I typed in one ?!

Thnx =) VM



Quote:
> Get the text into a string variable and get the Length of the string.

> --
> Ken Slovak
> [MVP - Outlook]
> Lead Author, Professional Outlook 2000 Programming, Wrox Press
> Co-author of "Programming Microsoft Outlook 2000", Chapters 8-13,
> Appendices, Sams



> > hi,

> > how can I get the number of characters of the reference when writing
> emails
> > with Word2000 ?
> > I tried to use Selection.Characters.Count, but that doesn't work,
> Selection
> > seems to refer only to the Document Text.
> > Any solutions ?

> > Thnx. =) VM



Wed, 22 Oct 2003 04:09:02 GMT  
 How to count the Reference Characters ?
What if you just get the item as a MailItem? Can't you get the subject
then?

--
Ken Slovak
[MVP - Outlook]
Lead Author, Professional Outlook 2000 Programming, Wrox Press
Co-author of "Programming Microsoft Outlook 2000", Chapters 8-13,
Appendices, Sams


Quote:
> Hi Ken,

> sure but where can I find the Subject when writing an Email with
Word2000.
> ActiveDocument.GetLetterContent.Subject didn't work, cause no
Subject was
> saved there although I typed in one ?!

> Thnx =) VM



Wed, 22 Oct 2003 04:30:00 GMT  
 How to count the Reference Characters ?
I can, but when writing a new Email, Outlook will open Word as the Email
Editor. Then I don't know how to get the Subject, cause it's no longer
Outlook - I have to write an Word macro. The function should be to click on
an integrated Button that shows a Msg which shows the Characters of the
Email Subject.
Actually only one line code, if AvtiveDocument.GetLetterContent.Subject
would work, or something else ??

Thnx =) VM



Quote:
> What if you just get the item as a MailItem? Can't you get the subject
> then?

> --
> Ken Slovak
> [MVP - Outlook]
> Lead Author, Professional Outlook 2000 Programming, Wrox Press
> Co-author of "Programming Microsoft Outlook 2000", Chapters 8-13,
> Appendices, Sams



> > Hi Ken,

> > sure but where can I find the Subject when writing an Email with
> Word2000.
> > ActiveDocument.GetLetterContent.Subject didn't work, cause no
> Subject was
> > saved there although I typed in one ?!

> > Thnx =) VM



Wed, 22 Oct 2003 15:32:10 GMT  
 How to count the Reference Characters ?
I don't use WordMail but don't you get a NewInspector event when an
item opens even if the editor is Word? If you do you can still get the
new mail item I believe.

--
Ken Slovak
[MVP - Outlook]
Lead Author, Professional Outlook 2000 Programming, Wrox Press
Co-author of "Programming Microsoft Outlook 2000", Chapters 8-13,
Appendices, Sams


Quote:
> I can, but when writing a new Email, Outlook will open Word as the
Email
> Editor. Then I don't know how to get the Subject, cause it's no
longer
> Outlook - I have to write an Word macro. The function should be to
click on
> an integrated Button that shows a Msg which shows the Characters of
the
> Email Subject.
> Actually only one line code, if

AvtiveDocument.GetLetterContent.Subject
Quote:
> would work, or something else ??

> Thnx =) VM



Fri, 24 Oct 2003 22:53:11 GMT  
 How to count the Reference Characters ?
Thnx, will check it out. =) VM



Quote:
> I don't use WordMail but don't you get a NewInspector event when an
> item opens even if the editor is Word? If you do you can still get the
> new mail item I believe.

> --
> Ken Slovak
> [MVP - Outlook]
> Lead Author, Professional Outlook 2000 Programming, Wrox Press
> Co-author of "Programming Microsoft Outlook 2000", Chapters 8-13,
> Appendices, Sams



> > I can, but when writing a new Email, Outlook will open Word as the
> Email
> > Editor. Then I don't know how to get the Subject, cause it's no
> longer
> > Outlook - I have to write an Word macro. The function should be to
> click on
> > an integrated Button that shows a Msg which shows the Characters of
> the
> > Email Subject.
> > Actually only one line code, if
> AvtiveDocument.GetLetterContent.Subject
> > would work, or something else ??

> > Thnx =) VM



Fri, 24 Oct 2003 23:17:50 GMT  
 
 [ 7 post ] 

 Relevant Pages 

1. reference counting - how to determine *who* is referencing

2. reference counting - how to determine *who* is referencing

3. running character count

4. Counting characters as they are typed

5. counting characters in a string

6. COUNT OF CHARACTERS IN A MAIL

7. Count occurances of a character string?

8. Ignore strikethrough text in document character count

9. Scanning text & objDoc.Characters.Count

10. variable character count

11. Characters.Count vs. ComputeStatistics

12. Characters count without space in VB.NET

 

 
Powered by phpBB® Forum Software