Seth Moster
Seth Moster

Reputation: 1

VBA Word: Making a range from cells in a table "Named Argument Not Found"

I'm trying to set a range of Cell so I can later add content controls to each cell in that range. Right now I have:

Set MyRange = ActiveDocument.Table(1).Cell(Start:=ActiveDocument.Table(1).Cell(2, 4).Range.Start, End:=(ActiveDocument.Table(1).Cell(2, 14).Range.End)

As far as I am aware that creates the range (Row 2, Column 4 through 14), but when I pass that through it does not return a syntax error but a "Named Argument Not Found" and highlights "Start:=". After I have the range set I should be able to pass the range through:

Set MyCC = ActiveDocument.ContentControl.Add(wdContentControlDate, MyRange)

That should create a date picker on each cell in the range as far as I am aware.

Upvotes: 0

Views: 94

Answers (0)

Related Questions