Numbering Function

  • Thread starter Thread starter mdougherty44
  • Start date Start date
M

mdougherty44

How can I set up a cell to automatically increase it's numeric value by 1
every time the workbook is opened? Thanks!
 
In the "ThisWorkbook" module:

Private Sub Workbook_Open()
With ThisWorkbook.Sheet1.Range("A1")
.Value = .Value + 1
End With
End Sub


Tim
 

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

Back
Top