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

Re: Auto Increment number on Document by Doug

Doug
Mon Mar 13 23:02:37 CST 2006

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

"Irshad Alam" <IrshadAlam@discussions.microsoft.com> wrote in message
news:C9F2D203-30E4-4DBF-9FD3-E204D8599206@microsoft.com...
>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
>