I have a couple hundred Microsoft Word Tables each with a cell with the following value
FY 2016
Actual
I need to increment the year and attempted this way which did not do anything:
dim newval
newval = "2017"
call replace(tbl.cell(row,2).range.text,"2016",newval)
Question: How can I modify this code so that it replaces the 2016 with 2017?
If possible I wish to keep the original text and just replace the 2016.
That way I do not loose the line break
Open in new window