Women in Technology

Hear us Roar



Article:
  Hacking Word
Subject:   Dim nodeRoot As DiagramNode
Date:   2005-06-15 17:42:34
From:   pjpf
The macro to make an Org chart from Outline fails for me. This seems to be the problem:
Dim nodeRoot As DiagramNode


I'm new to these macros somaybe I did something wrong. I have run other examples though.


Cool book - If I only had some time to experiment!
Any thoughts?
Thanks


pj. . .

Full Threads Oldest First

Showing messages 1 through 4 of 4.

  • Replace feature in word
    2008-05-18 17:11:01  vpratap [View]

    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?
    • 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.
  • Andrew Savikas photo Dim nodeRoot As DiagramNode
    2005-06-16 07:25:11  Andrew Savikas | O'Reilly AuthorO'Reilly Blogger [View]

    Hi PJ,

    That hack only works with Word 2003. I'm sorry that wasn't clear from the text. I have verified that it works as shown on two different machines running Word 2003.

    Glad to hear you like the book, and thanks for the feedback!
    • Dim nodeRoot As DiagramNode
      2010-03-04 09:47:05  goofy78270 [View]

      It appears that if you have a style such as Char1 Char Char Char, the macro will get stuck in an endless loop as the style is renamed to "1" which is not valid. Can you please see if you have the same issue or offer a possible solution?