Results 1 to 2 of 2
  1. #1
    3 Star Lounger
    Join Date
    Mar 2003
    Elkins Park, Pennsylvania, USA
    Thanked 0 Times in 0 Posts

    Word XP FIELDS (Word XP VBA)

    In some wicked VBA code I'm writing for Word, I want to get all of the text that's on the same line as a particular field. The catch is that I don't want to actually SELECT the field; I just want to loop through the FIELDS collection in a document and display the text that surrounds each field in a dialog box. The problem is that the FIELD object doesn't have a RANGE property. Can anyone think of a workaround? I'm prepared to select the field (to return a SELECTION object) if I have to, and then modify the selection range, but that's not the most elegant way to do it.
    <font face="Comic Sans MS">That's what you do in a herd; you look out for each other!</font face=comic> - Mike

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Thanked 28 Times in 28 Posts

    Re: Word XP FIELDS (Word XP VBA)

    Also posted in the Word forum. I'm locking this thread to prevent duplicate and diverging threads. Further discussion under <post#=251244>post 251244</post#>, please.

Posting Permissions

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