R
Rob Hargreaves
Please could someone help me with a word problem I have when making book
marks
I want to use some code generated by the macro recorder to put some
sequentially numbered bookmarks in a document template.
I need the code to move down x lines from the cursor then enter a new
bookmark with a pre defined name although the number of the page following
the bookmark name.
So page 1 will be bookmark1
page 2 bookmark 2 etc
the code i have and I have it successfully entering test value as text are
Selection.MoveDown Unit:=wdLine, Count:=39
Selection.TypeText Text:="Test Value"
So in the place of testvalue I need to add a bookmark and some code to name
it namepage.
I have found some code to add a bookmark but dont know how to adapt it and
to add a loop.
If someone can help me that would be great.
Thanks
Rob
marks
I want to use some code generated by the macro recorder to put some
sequentially numbered bookmarks in a document template.
I need the code to move down x lines from the cursor then enter a new
bookmark with a pre defined name although the number of the page following
the bookmark name.
So page 1 will be bookmark1
page 2 bookmark 2 etc
the code i have and I have it successfully entering test value as text are
Selection.MoveDown Unit:=wdLine, Count:=39
Selection.TypeText Text:="Test Value"
So in the place of testvalue I need to add a bookmark and some code to name
it namepage.
I have found some code to add a bookmark but dont know how to adapt it and
to add a loop.
If someone can help me that would be great.
Thanks
Rob