+ Reply to Thread
Results 1 to 3 of 3

Putting a Checkbox in a table in a word document

  1. #1
    Registered User
    Join Date
    06-21-2010
    Location
    Gothenburg
    MS-Off Ver
    Excel 2003
    Posts
    50

    Putting a Checkbox in a table in a word document

    Hello everyone

    This is a repost from a post in the word programming section of the forum but I did not get any replies (that forum seems pretty dead) and since it is technically excel VBA I am using I thought it wouldn't hurt to post it here.

    I am trying to add a checkbox to a table and then set its name and check it. I manage to add it but when I try to use the checkbox I get "Object variable or with block variable not set"

    I use vba in excel to create a word document and manipulate it

    The relevant code is this:


    Please Login or Register  to view this content.
    I tried changing the with block to


    Please Login or Register  to view this content.
    But I get the same error.

    What am I doing wrong?

    Thanks in advance
    Last edited by Brunstgnegg; 08-11-2010 at 03:18 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    08-26-2006
    Location
    -
    MS-Off Ver
    2010
    Posts
    388

    Re: Putting a Checkbox in a table in a word document

    Hi - this works for me....I think you have to collapse the range (table cell) before placing the checkbox there.

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    06-21-2010
    Location
    Gothenburg
    MS-Off Ver
    Excel 2003
    Posts
    50

    Re: Putting a Checkbox in a table in a word document

    Hi - this works for me....I think you have to collapse the range (table cell) before placing the checkbox there.
    Thank you, this works perfectly!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1