View Single Post
 
Old 07-13-2018, 07:16 PM
Guessed's Avatar
Guessed Guessed is offline Windows 10 Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,184
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

If you want to simply tag a single document with every 100th word then I would just use Highlighting to make it obvious where these are. A macro method to add the highlights should probably firstly remove any existing highlights but that might not be what you want.
Code:
Sub TagEvery1000thWord()
  Dim lWord As Long
  ActiveDocument.Range.HighlightColorIndex = wdNoHighlight
  For lWord = 1000 To ActiveDocument.Words.Count Step 1000
    ActiveDocument.Words(lWord).HighlightColorIndex = wdPink
  Next lWord
End Sub
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote