Results 1 to 7 of 7
  1. #1
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Yilgarn region of Toronto, Ontario
    Posts
    5,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    find a frame (Word2000)

    This has me stumped.
    Nowhere in the Word2000 menu system, and especially in the Edit, Find, Special, can I find a simple way to locate any frames in a document.
    The vba code<pre>Sub test()
    MsgBox ActiveDocument.Frames.Count
    End Sub
    </pre>

    tells me that I have 4 frames in the document. I have found and killed one of them, but how does a user even get to know that they have frames.
    Finding the remaining three would be nice.

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: find a frame (Word2000)

    You can select a frame:

    ActiveDocument.Frames(3).Select

    or loop through them:

    Sub LoopFrames()
    Dim frm As Frame
    For Each frm In ActiveDocument.Frames
    Debug.Print frm.Range.Text
    Next frm
    End Sub

  3. #3
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Yilgarn region of Toronto, Ontario
    Posts
    5,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: find a frame (Word2000)

    > or loop through them:
    Thanks, Hans. I can also locate them in and around tables, nested tables even, convert to tabs and back again automatically (nice little PhD coming on here), but how does a user do it without VBA?

    If I were a client of mine, and was too scared/ashamed/afraid to 'phone and ask, what/where in the end-user interface for Word (menus and help screens) can be found the means for locating these frames?
    That's what had me stumped.
    I'm always happy to dash off a bit of VBA code, but wanted to suggest a thing that the poor client could do.
    Have I missed something obvious in the Edit, Find, (More) Special?

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: find a frame (Word2000)

    I don't know of a really good way to find frames without using VBA. Ticking the check box "Text boundaries" in the Show tab of Tools | Options... makes frames more conspicuous, even if they are borderless. But that doesn't help much if you have 4 frames in an 80 page document.

  5. #5
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Yilgarn region of Toronto, Ontario
    Posts
    5,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: find a frame (Word2000)

    > I don't know of a really good way to find frames without using VBA
    Thanks for the confirmation. I thought I was going insane.
    As you will gather we have here a document created by a commitee, some of whom had learned about Frames in a course, some had learned about tables, still other have learned about nested tables. Put 'em all together and what have we got?

  6. #6
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: find a frame (Word2000)

    I think Frames functionality was more obvious before Microsoft introduced Text Boxes. At that time, Frames became something of a legacy feature without as much UI support...

  7. #7
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Yilgarn region of Toronto, Ontario
    Posts
    5,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: find a frame (Word2000)

    > before Microsoft introduced Text Boxes.

    Thanks Jefferson. I checked in Word97 the Edit, Find (Special), the Edit Goto, and finally the help files.

    From Word97 help:

    The difference between a text box and a frame
    Word 97 uses both text boxes and frames as "drawing objects" that is, as containers for text that can be positioned on a page and sized. In earlier versions of Word, you use frames when you want to wrap text around a graphic. In Word 97, you can wrap text around a graphic of any size or shape without first inserting it in a text box or frame. In earlier versions of Word, only frames are available. Text boxes were added in Word 97 to provide better, more exciting ways to manipulate text and take advantage of new graphical effects. Frames are still necessary to do a few things you can't do with text boxes.

Posting Permissions

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