Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 242437
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T20:50:14+00:00 2026-05-11T20:50:14+00:00

How do I read the value of a checkbox in a word (*.doc) file

  • 0

How do I read the value of a checkbox in a word (*.doc) file in VB.net using a range object?

This is what I have so far:

Dim app As New Word.Application
Dim doc As Document
doc = app.Documents.Open("C:\myDoc.doc")
dim chkBox as Bookmark
chkBox = doc.Bookmarks("MyCheckbox")
Dim rng as Range
rng = chkBox.Range

where “MyCheckbox” is the bookmark of the checkbox in the word document.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T20:50:14+00:00Added an answer on May 11, 2026 at 8:50 pm

    Any particular reason you’re not reading the value of the checkbox using the name of the checkbox itself?

    If the range defined by your bookmark contains a checkbox, then, depending upon how the checkbox is inserted, it will be found in either the InlineShapes collection (if checkbox inserted inline with the text) or the Shapes collection (if inserted as a floating object.)

    You would then need to iterate through the collection of Shapes or InlineShapes looking for the checkbox in question.

    Iterating through controls in InlineShapes collection

    Dim ctl As InlineShape
    For Each ctl In rng.InlineShapes
        If ctl.Type = wdInlineShapeOLEControlObject Then
            If ctl.OLEFormat.ClassType Like "Forms.CheckBox*" Then
                'current version of ctl is a checkbox, do what you will with it.
    
            End If
        End If
    Next ctl
    ...
    

    This ought to get you closer, but if the name of the checkbox is predictable, it is better to address it directly by name.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to read the value of a property from a file in an
I'm trying to read a value from a file and use it in a
as a follow up to this question , while the checkbox value is stored
How can I have an accessible read only checkbox in Silverlight? The accessibility requirements
Am trying to read the value of a checkbox from a BackgroundWorker in WPF:
I have some code <input type=checkbox id=chk value=value /> <label for=chk>Value </label> <br/> <input
I have function where I read from a mysql table a set of value.
I am trying to read cells value from asp.net GridView control in Client Site
Is there a way to read value for the WiX variable from a text
How can I read the value of a system environment variable in a T-SQL

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.