Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Word 2000/VBA UserForm with table and bookmarks

Status
Not open for further replies.

PatriciaW

Instructor
Jan 23, 2000
1
NZ
I've created a userform that drops the user's input into a Word table. Each row is bookmarked to correspond to the textboxes in the form. If any textbox is not completed, the corresponding row in the table remains empty. My form works well up to that point but I need to delete the bookmarks in empty rows, and then the empty rows. I simply can't figure out the code to achieve that.

Any help would be much appreciated.

patw
novice VBA programmer
 
Hi PatriciaW,

maybe this works,

activedocument.Bookmarks(index).delete
activedocument.tables(index).rows(index).delete

if this doesn't work, something like it should :)

i have used it but can't remember the exact code

Tom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top