LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.misc
Miguel Zapico
 
Posts: n/a
Default Templates - automatic numbering

You can use the event Workbook_open, and use a macro like this:
Private Sub Workbook_Open()
Worksheets("sheet1").Range("A1").Value =
Worksheets("sheet1").Range("A1").Value + 1
End Sub

The code must be placed in the workbook code area, that can be accessed by
right click on the Excel icon left to the file menu and selecting "View code"

Hope this helps,
Miguel.

"john" wrote:

I have a template that I want a unique, sequential number
to appear every time the file is opened. Meaning, the first time it is

opened the number could be 101. The next time the template is used,
the file should open with 102 in the designated field and so on.

Any thoughts on how to accomplish this?


 
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
excel automatic numbering Spice Excel Discussion (Misc queries) 4 April 25th 06 07:04 PM
How do I set up automatic sequentially numbering for worksheets? ned Excel Worksheet Functions 0 December 11th 05 06:46 PM
Automatic Numbering Upwards Alex01 Excel Discussion (Misc queries) 2 August 17th 05 08:05 AM
How do I set up invoice automatic numbering in excel? Tracy Excel Discussion (Misc queries) 1 March 22nd 05 05:31 PM
automatic sequential numbering in excel or word greg2 Excel Discussion (Misc queries) 1 January 15th 05 05:35 PM


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

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

About Us

"It's about Microsoft Excel"