ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Numbering Function (https://www.excelbanter.com/excel-programming/406741-numbering-function.html)

mdougherty44

Numbering Function
 
How can I set up a cell to automatically increase it's numeric value by 1
every time the workbook is opened? Thanks!

Tim Williams

Numbering Function
 
In the "ThisWorkbook" module:

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


Tim

"mdougherty44" wrote in message
...
How can I set up a cell to automatically increase it's numeric value by 1
every time the workbook is opened? Thanks!





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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com