Auto Increment number on Document

I

Irshad Alam

I need to make a macro for all new/template documents, so that at what ever
line/place I am in the document it should bring me a number. And when ever in
same document or any other document If I call the macro it should obtain me a
preivious number+1. I mean just when ever I call this macro it should give me
an increment number.

I saw some codes on net for document /Form Type , with the help of bookmark
it can be obtained. But in my case I cannot make any bookmark. As I will be
using it as a reference number at any place in the letters. Sometime it is in
the first line , some time it is at last line , its not fixed.

Please advise me in details, as I am not good in VB.

Note : I have Windows XP operating system and MS Office 2000 installed. And
this autoincrement number should be obtained by all users of my PC (as 3
users are there of same PC)

Regards.

Irshad
 
D

Doug Robbins - Word MVP

Use a { SEQ } field. Assign it to an autotext entry to facilitate
insertion. No need for a macro.

--
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