Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Auto numbering in Excel

I would like to know if anyone knows how to create a auto numbering formula
in a cell so that when you open the workbook/worksheet each time it either
populates into the cell you want. Can this be a formula? Do I have to
create a macro?
Using Excel 2003
thanks.s
--
GreggY
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,722
Default Auto numbering in Excel

You'll need to use a macro. Open the VBA editor (Alt+F11) and go the the
ThisWorkbook sheet.
Paste this code in:

Private Sub Workbook_Open()
'Change Sheet name and Range to desired values
Sheets("Sheet1").Range("A2").Value = Sheets("Sheet1").Range("A2").Value + 1
End Sub

If you want the number to increase everytime the sheet is selected, go to
the apprpriate sheet module in the VBA editor, and paste this:

Private Sub Worksheet_Activate()
'Change Range callout as deisred
Range("A2").Value = Range("A2").Value + 1
End Sub


--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Gregg Y" wrote:

I would like to know if anyone knows how to create a auto numbering formula
in a cell so that when you open the workbook/worksheet each time it either
populates into the cell you want. Can this be a formula? Do I have to
create a macro?
Using Excel 2003
thanks.s
--
GreggY

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 in Excel brenda New Users to Excel 4 April 20th 07 05:30 PM
execute auto invoice numbering in excel file tom adeimy Excel Discussion (Misc queries) 1 July 25th 06 02:54 AM
is there an auto-numbering tax invoice templete for excel stepping Excel Discussion (Misc queries) 1 May 27th 06 11:24 AM
Is auto invoice numbering possible in Excel 2003? JODYG35950 Excel Discussion (Misc queries) 1 February 25th 06 06:40 PM
Where do I find the Auto Numbering icon Button for excel? holdfastchris Excel Discussion (Misc queries) 1 January 23rd 06 03:17 PM


All times are GMT +1. The time now is 05:57 PM.

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"