• Option Buttons (VBA/Word/2000)

    Author
    Topic
    #410109

    Ladies and Gents
    As I understand it;

    • the code , returns a property of the nth InLineShape in the document. In this particular instance, the InLineShapes are “Option Buttons”.
    • the code , 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.
    Viewing 3 reply threads
    Author
    Replies
    • #879081

      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).OLEFormat.Object.Name ‘ or this:
      ThisDocument.InlineShapes(2).OLEFormat.Object.Name

      HTH

      Alan

    • #879082

      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).OLEFormat.Object.Name ‘ or this:
      ThisDocument.InlineShapes(2).OLEFormat.Object.Name

      HTH

      Alan

    • #879351

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

    • #879352

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

    Viewing 3 reply threads
    Reply To: Option Buttons (VBA/Word/2000)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: