I
i.d.gibbons
I'm having issues inserting a wdFieldFormTextInput into a word table
cell. I create the table with a macro which works perfectly. I then
need to insert a wdFieldFormTextInput into the first rows 2nd cell.
I can set the text easily enough using ..............
I've tried multiple ways of adding the merge field all of which have
failed. I'm grateful for any advice! Here is an example of what I've
tied to do to accomplish what i'm after!
I get the generic "Run-time error '4605': This command is not
available" error message when trying to run the above.
cell. I create the table with a macro which works perfectly. I then
need to insert a wdFieldFormTextInput into the first rows 2nd cell.
I can set the text easily enough using ..............
Code:
MyRange.Table(1).Rows(1).Cells(2).Range.Text = " Testy Text "
I've tried multiple ways of adding the merge field all of which have
failed. I'm grateful for any advice! Here is an example of what I've
tied to do to accomplish what i'm after!
Code:
ActiveDocument.Fields.Add
Range:=MyRange.Tables(1).Rows(1).Cells(2).Range,
Type:=wdFieldFormTextInput, Text:="MERGEFIELD TESTMERGER",
PreserveFormatting:=True
I get the generic "Run-time error '4605': This command is not
available" error message when trying to run the above.