Can I set a spreadsheet to sequentially number the sheet?

C

CLAYSHELLY

I NEED TO CREATE A SPREADHSEET TEMPLATE AND PLACE A NUMBER ON THE SHEET,
ENTER DATA AND CLOSE/SAVE THE SHEET, THEN OPEN THE TEMPLATE AGAIN AND HAVE IT
AUTOMATICALLY OPEN WITH THE NEXT SEQUENTIAL NUMBER.
 
J

Jacob Skaria

From the template; launch VBE using Alt+F11. From the left treeview search
for the VBA project for this template workbook and click + to expand the
modules..Double click on 'This Workbook' and paste the below code....Adjust
sheetname and cell A1 to suit your requirement...now save and close..

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

If this post helps click Yes
 

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