Women in Technology

Hear us Roar



Article:
  Hacking Word
Subject:   Replace feature in word
Date:   2008-05-18 17:11:01
From:   vpratap
Response to: Dim nodeRoot As DiagramNode

Is there a way to determine the line number and the page number of each replacement?
Can a petten be supplied instead of the actual text? For example the format of say credit cards which could be four sets of 4 numbers like NNNN NNNN NNNN NNNN OR mixture of numbers and letters like LLL NNN?
Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • Andrew Savikas photo Replace feature in word
    2008-05-18 18:50:55  Andrew Savikas | O'Reilly AuthorO'Reilly Blogger [View]

    Word doesn't really "think" in terms of page numbers or line numbers. The pagination (including how the lines wrap on the page) is determined dynamically, and constantly, as the content is updated. If by "line" you mean "paragraph" (meaning that each new entry is in its own paragraph) then you have some more options. And yes, a pattern most certainly can be supplied. My book contains detailed instructions for using both built-in "wildcard" patterns, and more powerful "regular expressions". For basic wildcard info, check out http://word.mvps.org/faqs/General/UsingWildcards.htm.