Place checkbox in table cell


#1

Hello, Can someone supply a little code on how to insert a checkbox in cell of a table? The Template.doc has 2 different tables already inside, I need to put a checkbox in the first column of each row in the second (bottom) table.

Dim ww as New Word.Word
Dim wd as Word.Document
Dim wddb as Word.DocumentBuilder

wd = ww.Open(“c:\Template.doc”)

wddb = New Word.DocumentBuilder(wd)

…Now what?

Thanks

-Randy

EDIT: I got it working


#2

I see you got it working.

Sure, all you need is call DocumentBuilder.MoveToCell and then DocumentBuilder.InsertCheckBox.