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:
I tried changing the with block to
But I get the same error.
What am I doing wrong?
Thanks in advance
Bookmarks