Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 07-21-2021, 02:16 AM
Downunder Dave Downunder Dave is offline Use VBA to compare Text Box contents between documents. Windows 7 64bit Use VBA to compare Text Box contents between documents. Office 2010
Novice
Use VBA to compare Text Box contents between documents.
 
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
 

Tags
compare documents, revisions, text boxes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Use VBA to compare Text Box contents between documents. Macro to read cell contents and compare data jrfoley3 Excel Programming 7 07-09-2016 12:25 PM
Compare 2007 documents with 2010 documents wardw Word 1 06-09-2016 02:29 PM
compare, match and count cell contents between sheets bobsone1 Excel 11 08-07-2014 10:34 PM
Use VBA to compare Text Box contents between documents. Can you compare two word documents? (Automatically) admin4ever Word 2 05-17-2011 09:44 AM
Compare two word documents gives FORMATT changes for ListItems Jagadeesh Word 0 09-30-2009 07:49 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:34 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft