View Single Post
 
Old 07-21-2021, 02:16 AM
Downunder Dave Downunder Dave is offline Windows 7 64bit Office 2010
Novice
 
Join Date: Jul 2021
Location: New Zealand
Posts: 3
Downunder Dave is on a distinguished road
Default

Hi Peterson,
Thank you for your reply. You have handed me the missing link. I did not know about the StoryRanges object. It all makes a bit more sense now.


By the way, in the actual project I am trying to do, I am comparing a template to hundreds of documents that have been created by users from that template. I am trying to determine how much text has been added to that that was already in the template. The code that I displayed was finding the number of characters in each revision (that was the subject of an insert action) with:



dsRevision.Range.Characters.Count


and adding that number to the value currently in: sngCharacters


It works like a charm, it is just that without knowing about the StoryRanges object, I could not account for text boxes that a user may have added and inserted text into.


Cheers,


Downunder Dave
Reply With Quote