
Word 2000, VBA and "Track Changes"
Geez Glen, take care mate. You are sailing perilously close to thin ice
there.
To Point to a Text Box, you have to enumerate the collection reading the
contents until you find the one you want. You then set and object variable
equal to it and you can then manipulate its properties from VBA.
To add a new one you use the Add method on the collection with the Range set
to Selection.Range.
But before you start be aware of two things:
1) Anything in a text box is invisible to the TOC, Index and
Cross-reference generators. It's a bug. Use a frame instead if you need to
access the contents with the table generators.
2) The more text boxes you pack in the document the more unstable it gets.
Above 100 you are dangling by your fingernails, and somewhere south of 255
the document will corrupt and refuse to open.
Hope this helps
Quote:
> Greetings.
> So I have this template for a technical manual in the works (two columns
> on one page, no columns on the next, and 'text' always follows
> 'graphics') ... and eventually, we will need to track changes to the
> "finished" document. The spec I need to adhere to says I need a bar in
> the columns next to the changes (Word's Track Changes can do that).
> I also need a bizarre date/time/chapter/verse string inserted in one of
> the columns. This would be inserted into a text box, ideally created
> 'on the fly' by VBA.
> The question: How do I point to this text box from within VBA?
> To complicate matters more, these text boxes will increase in number for
> each person that views the document ....
> Any suggestions?
> --gdw
--
Please post replies to the newsgroup to maintain the thread.
John McGhie, Microsoft MVP -- Word
Consultant Technical Writer
+61 4 1209 1410; Sydney, Australia: GMT + 10 hrs