I have a couple of ContentControls in a Word document that I wish to reset to the first item in the list when the user clicks a button.
I have the button and some code to clear the contents of table cells, and I have tried to get the first contentcontrol (a drop list) to reset to the first list item, (line 15 in the code) but I'm struggling.
As always any help is much appreciated.
Private Sub btnEmal_Click()
On Error GoTo ErrHandler
Dim cl1 As Cell
Dim cl2 As Cell
Dim tbl As Table
Dim rng As Range
Set tbl = ActiveDocument.Tables(1)
Set cl1 = tbl.Cell(2, 2)
Set cl2 = tbl.Cell(11, 5)
Set rng = cl1.Range.Duplicate
rng.End = cl2.Range.End
ActiveDocument.Range , ContentControls("Shift").Range = 1