Results 1 to 3 of 3
  1. #1
    Silver Lounger
    Join Date
    Jul 2001
    Location
    Ottawa, Ontario, Canada
    Posts
    1,609
    Thanks
    0
    Thanked 1 Time in 1 Post

    Option Buttons (VBA/Word/2000)

    Ladies and Gents
    As I understand it;
    <UL><LI>the code <ActiveDocument.InlineShapes(n).Property>, returns a property of the nth InLineShape in the document. In this particular instance, the InLineShapes are "Option Buttons".
    <LI>the code <ThisDocument.S1C1.Value>, returns The value of the object (InLineShape) named in the code[/list] Does anyone out there have some code which will allow me to determine the name of the InLineShape knowing its sequence in the document? As an additional piece of information; the buttons are all located in a table with known row-column positions.
    Any help will be greatly appreciated.
    Regards
    Don

  2. #2
    Platinum Lounger
    Join Date
    Nov 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    5,016
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Option Buttons (VBA/Word/2000)

    Hi Don

    I've not worked with InlineShapes in VBA before, but this seems to work for a doc containing a couple of option buttons:

    Application.ActiveDocument.InlineShapes(1).OLEForm at.Object.Name ' or this:
    ThisDocument.InlineShapes(2).OLEFormat.Object.Name

    HTH

    Alan

  3. #3
    Silver Lounger
    Join Date
    Jul 2001
    Location
    Ottawa, Ontario, Canada
    Posts
    1,609
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Option Buttons (VBA/Word/2000)

    Alan
    The more I get to know the frequenters of Woody's lounge; The more I get to know. Your code works a treat!
    Regards
    Don

Posting Permissions

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