Hi,
Probably an easy one. I'm trying to enter some text into a cell in a table which is in the 2nd page header. This is the code I'm using, but I keep getting a error message 'There is no table at this location', when there clearly is.
ActiveDocument.Sections(1).Headers(wdHeaderFooterEvenPages).Range.Cells(1).Select
Selection.MoveRight Unit:=wdCell
Selection.Text = "This is My Name"
Probably an easy one. I'm trying to enter some text into a cell in a table which is in the 2nd page header. This is the code I'm using, but I keep getting a error message 'There is no table at this location', when there clearly is.
ActiveDocument.Sections(1).Headers(wdHeaderFooterEvenPages).Range.Cells(1).Select
Selection.MoveRight Unit:=wdCell
Selection.Text = "This is My Name"