sequential names in document

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
 
D

Doug Robbins

Sounds like what you are doing is adding bookmarks named as pagenumbers.
What is the purpose of them? There are other ways of going to pages.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top