K
kdyjur
OK, I have a table where I click a button and it adds a row on the
bottom of the table. There are four columns in that row and I want to
place a combobox in column three of the new row.
I have looked everywhere and still cannot get the syntax 100% right:
Private Sub butAddTask_Click()
'1. Add Row
ActiveDocument.Tables(1).Rows.Add
'2. Count Rows
intNumberOfRowsTasks = (ActiveDocument.Tables(1).Rows.Count)
'3. Write Text into Cells
Tables(1).Cell(intNumberOfRowsMilestones, 3).Range.Text =
InlineShapes.AddOLEControl(ClassType:="Forms.ComboBox.1",Tables(1)(intNumberOfRowsMilestones,
3))
End Sub
Basically it's the third part of this that I want to get straight.
additionally I want to add four items to this new combobox. Can someone
PLEASE help???
bottom of the table. There are four columns in that row and I want to
place a combobox in column three of the new row.
I have looked everywhere and still cannot get the syntax 100% right:
Private Sub butAddTask_Click()
'1. Add Row
ActiveDocument.Tables(1).Rows.Add
'2. Count Rows
intNumberOfRowsTasks = (ActiveDocument.Tables(1).Rows.Count)
'3. Write Text into Cells
Tables(1).Cell(intNumberOfRowsMilestones, 3).Range.Text =
InlineShapes.AddOLEControl(ClassType:="Forms.ComboBox.1",Tables(1)(intNumberOfRowsMilestones,
3))
End Sub
Basically it's the third part of this that I want to get straight.
additionally I want to add four items to this new combobox. Can someone
PLEASE help???