#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Auto Numbering

What is the best way to generate an auto number, like an invoice number, on a
template so that each time a new workbook is created a sequential number
appears

thanks in advance
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,886
Default Auto Numbering

Hi Nigel

J E McGimpsey has some suggestions on his site at
http://www.mcgimpsey.com/excel/udfs/sequentialnums.html

--
Regards

Roger Govier


"Nigel 2000" wrote in message
...
What is the best way to generate an auto number, like an invoice
number, on a
template so that each time a new workbook is created a sequential
number
appears

thanks in advance



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 32
Default Auto Numbering

Hi

I always use this for numbering documents, it might not be good code but it
works well enough for me.

EG:
In cell A1 enter a number say 12345
Cell B1 enter 1 (the number you wish to increment by)
Cell C1 = A1+B1 (your document no. = 12346)

Use a button to operate the following code.

Sub IncOrdNum()

Application.ScreenUpdating = False

Range("c1").Select
Selection.Copy
Range("a1").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
:=False, Transpose:=False

Application.CutCopyMode = False

End Sub

Regards

Steve







"Nigel 2000" wrote in message
...
What is the best way to generate an auto number, like an invoice number,
on a
template so that each time a new workbook is created a sequential number
appears

thanks in advance



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto Numbering System Smurf613 Excel Worksheet Functions 1 July 13th 06 12:51 AM
Data tracking and auto sequential numbering rajeshparikh64 Excel Worksheet Functions 0 March 28th 06 03:08 AM
Auto Numbering Starguy Excel Worksheet Functions 0 March 26th 06 11:51 PM
Auto Numbering Andy JL New Users to Excel 3 November 23rd 05 05:09 AM
Auto page numbering for several worksheets Andy Excel Worksheet Functions 1 March 13th 05 04:41 AM


All times are GMT +1. The time now is 11:02 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"