Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 11-22-2013, 05:33 AM
macropod's Avatar
macropod macropod is offline VBA to highlight words if used too much Windows 7 32bit VBA to highlight words if used too much Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Yes, it's possible, but the processing would be time-consuming in a large document, since every string of Y paragraphs or Z characters must be checked.

Consider a document with 10 paragraphs with Y = 5. That's 6 separate checks (i.e. you need n-y+1 checks, where n = number of paragraphs). And that's just for one word. Do empty paragraphs count?

With the inter-character separation, you'd need to find every occurrence and count the characters between them. Do tabs, paragraph breaks, punctuation, etc. count as characters?
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA to highlight words if used too much Macro to highlight a list of words bakerkr Word VBA 4 10-19-2017 02:23 PM
VBA to highlight words if used too much Highlight all underlined words zdodson Word VBA 1 07-11-2013 04:53 PM
VBA to highlight words if used too much Macro to highlight words bertietheblue Word VBA 9 07-01-2013 12:39 PM
VBA to highlight words if used too much Highlight and then replace multiple words redhin Word VBA 5 03-05-2013 05:42 AM
VBA to highlight words if used too much Find and highlight all words ending in -ly RBLampert Word VBA 13 10-23-2012 04:45 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:48 PM.


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