K
ker_01
First, ARGGGHHH I hate the buggy MS newsgroup web interface (my only option,
since NNTP is blocked by our firewall). Here goes attempt #3 to post my
question, since it crashed on my last two attempts.
I have added optionbuttons on a Word2007 form using Graham Mayor's code:
groups.google.com/group/microsoft.public.word.docmanagement/browse_thread/thread/84e55b879c2da74e/e07cd930a48e9f75?lnk=raot
(FWIW, I can't even find this newgroup on the MS web interface, otherwise I
would have just posted a followup in that thread)
Sub RadButton()
Selection.InlineShapes.AddOLEControl ClassType:="Forms.OptionButton.1"
End Sub
Now I have optionbuttons in my document, and I need to be able to check
their values based on the control name, such as "opt1Y1".
Debug.Print wrdDoc.FormFields("opt1Y1").OptionButton.Value doesn't work;
auto-complete doesn't show OptionButton as a valid property
Debug.Print wrdDoc.InlineShapes("opt1Y1").Value doesn't work, I think I'm
missing part of the syntax
Can anyone tell me how to check the value of a specific named optionbutton
that has been added to a Word2007 document using Graham's code above?
Thank you!!!
Keith
since NNTP is blocked by our firewall). Here goes attempt #3 to post my
question, since it crashed on my last two attempts.
I have added optionbuttons on a Word2007 form using Graham Mayor's code:
groups.google.com/group/microsoft.public.word.docmanagement/browse_thread/thread/84e55b879c2da74e/e07cd930a48e9f75?lnk=raot
(FWIW, I can't even find this newgroup on the MS web interface, otherwise I
would have just posted a followup in that thread)
Sub RadButton()
Selection.InlineShapes.AddOLEControl ClassType:="Forms.OptionButton.1"
End Sub
Now I have optionbuttons in my document, and I need to be able to check
their values based on the control name, such as "opt1Y1".
Debug.Print wrdDoc.FormFields("opt1Y1").OptionButton.Value doesn't work;
auto-complete doesn't show OptionButton as a valid property
Debug.Print wrdDoc.InlineShapes("opt1Y1").Value doesn't work, I think I'm
missing part of the syntax
Can anyone tell me how to check the value of a specific named optionbutton
that has been added to a Word2007 document using Graham's code above?
Thank you!!!
Keith