Results 1 to 2 of 2
  1. #1
    2 Star Lounger
    Join Date
    Jul 2003
    Location
    Park City, Utah
    Posts
    189
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Calculation on Variable Contents (Word 2003)

    I use the following to get the character count from the document, but I need to add 230 to this variable for the characters contained in the header. How do I do that?

    intCount = ActiveDocument.BuiltInDocumentProperties(wdPropert yCharsWSpaces)

    Thanks!

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Calculation on Variable Contents (Word 2003)

    Perhaps this?

    intCount = ActiveDocument.BuiltInDocumentProperties(wdPropert yCharsWSpaces) + 230

    Note: the name intCount suggests that the variable is of type Integer. You should use a variable of type Long - many word documents have more than 32,767 characters.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •