Results 1 to 5 of 5

Thread: [RESOLVED] Can you "label" sections of a word doc as reference points?

Threaded View

  1. #1

    Thread Starter
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091

    Resolved [RESOLVED] Can you "label" sections of a word doc as reference points?

    Okay, I don't do much in the way of VBA stuff, so please forgive me if I sound like an idiot (well, more than I normally do ).

    So I've got this word doc that I am using as a template for program documentation. I also have an xml file that describes each screen. What I would like to do is take the contents of that xml file and match it to different parts of the document. For example..there is a textbox on the first page that is for the title. So I have a <title> tag in the xml and I would like to put its contents into that textbox.

    So is there a way for me to tag that textbox as "title", so as I am going through the object model I could do something like...

    Code:
    document.Fields("title").Select
    Selection.TypeText Text:="Some Title"
    Is this possible?
    Last edited by crptcblade; Feb 24th, 2006 at 08:40 AM.
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width