incremental step

J

Jim

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

Shane Devenshire

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top