in
All Tags » word » vba » end (RSS)

Browse by Tags

  • Word VBA, Loop through all words in a document

    Using VBA for Word, how do I loop through all the "Words" in the Active document? I've used this in Access, but don't know the synatx for Word. I'm thinking it should look something like this: Sub Loop() Dim wd as Word for each wd in ActiveDocument 'Do Something Next wd End...
    Posted to Word (Forum) by microsoft on 02-12-2010
  • Looping in Word VBA to the End of Document

    I need to know how to write a loop that will execute until it reaches the End of the Document. Something like the following: "Do while Not EOF". If that is not possible I would like to know how to at least count the lines in the document?
    Posted to Microsoft Office (Forum) by microsoft on 06-13-2009
Page 1 of 1 (2 items)