Hi,
I have a Word document with lots of references to a Project No. (and others). I use VBA to auto-fill these in from a spreadsheet. Because Word makes you give each bookmark a unique name I have lots of bookmarks relating to the same cell value in my worksheet. This makes my code long an inefficient. Currently I am using the method
and so on.... Is there a way I can say something like .Bookmarks("PNo1","PNo2","PNo3") etc??
Thanks in advance
I have a Word document with lots of references to a Project No. (and others). I use VBA to auto-fill these in from a spreadsheet. Because Word makes you give each bookmark a unique name I have lots of bookmarks relating to the same cell value in my worksheet. This makes my code long an inefficient. Currently I am using the method
Code:
With objWord
.Bookmarks("PNo1").Range.Text = Range("AA30").Value
.Bookmarks("PNo2").Range.Text = Range("AA30").Value
.Bookmarks("PNo3").Range.Text = Range("AA30").Value
End With
Thanks in advance