#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jim Jim is offline
external usenet poster
 
Posts: 615
Default incremental step

how do I set up and cell for incermental steps by 1 each time a spreadsheet
is opened for quoting?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default incremental step

Hi,

You need to use code:

Private Sub Workbook_Open()
Sheets("Sheet1").[A1] = Sheets("Sheet1").[A1]+1
End Sub

1. To add this code to your file, press Alt+F11,
2. In the VBAProject window, top left side, find the "thisWorkbook" object
under your file name and double click it.
3. Paste in or type the code above.

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"Jim" wrote:

how do I set up and cell for incermental steps by 1 each time a spreadsheet
is opened for quoting?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default incremental step

Hi,

You could do this

Private Sub Workbook_Open()
Sheets("Sheet1").Range("A1").Value _
= Sheets("Sheet1").Range("A1").Value + 1
End Sub

or have a look at JE McGimpsey's site

http://www.mcgimpsey.com/excel/udfs/sequentialnums.html

Mike

"Jim" wrote:

how do I set up and cell for incermental steps by 1 each time a spreadsheet
is opened for quoting?

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
Need step by step to add invoice numbering to excel template rmt New Users to Excel 4 July 6th 08 11:45 PM
can't install CD from Excel 2003 step by step djclark New Users to Excel 0 February 9th 06 11:31 PM
Need step by step for entering data into combobox mandy Excel Discussion (Misc queries) 2 December 7th 05 03:37 PM
What is the step-by-step procedure for making a data list? Bobgolfs56 Excel Discussion (Misc queries) 1 April 23rd 05 02:19 PM
I need step by step instructions to create a macro for 10 imbedde. diana Excel Worksheet Functions 3 January 31st 05 01:56 AM


All times are GMT +1. The time now is 09:50 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"