Hi All
I have several checkboxes on a Word document that I want to access via VB
net
These are checkboxes from the Control Toolbox toolbar
I have tried...
wordapp.ActiveDocument.StoryRanges(Word.WdStoryType.wdMainTextStory).FormFields("CheckBox1").CheckBox.Value
= true
but get error collection member doesn't exist
The checkbox is called Checkbox1 in Word
Any ideas
Regards
Steve
Doug Robbins - 14 Oct 2005 05:25 GMT
Have you tried without the "StoryRanges(Word.WdStoryType.wdMainTextStory)"
ActiveDocument.FormFields("CheckBox1").CheckBox.Value
should be all you need to get the value of a checkbox in the body of the
document.

Signature
Hope this helps.
Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.
Doug Robbins - Word MVP
> Hi All
>
[quoted text clipped - 16 lines]
>
> Steve
Tony Jollans - 14 Oct 2005 17:02 GMT
Checkboxes from the Control Toolbox are not members of the FormFields
collection. Take a look in the Shapes or InlineShapes collection (depending
on format).
--
Enjoy,
Tony
> Hi All
>
[quoted text clipped - 3 lines]
> These are checkboxes from the Control Toolbox toolbar
> I have tried...
wordapp.ActiveDocument.StoryRanges(Word.WdStoryType.wdMainTextStory).FormFie
lds("CheckBox1").CheckBox.Value
> = true
>
[quoted text clipped - 7 lines]
>
> Steve