ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Workbook access counter in excel? (https://www.excelbanter.com/excel-discussion-misc-queries/128429-workbook-access-counter-excel.html)

basher57

Workbook access counter in excel?
 
Is it possible to add a counter to an Excel sheet that adds one every time
the file is accessed? Similar to a webpage counter I suppose is what I am
after.

Knut

Workbook access counter in excel?
 
Place this in ThisWorkbook-module:

Private Sub Workbook_Open()
Worksheets("Sheet1").Range("A1") = Worksheets("Sheet1").Range("A1") + 1
ThisWorkbook.Save
End Sub




"basher57" skrev i melding
...
Is it possible to add a counter to an Excel sheet that adds one every time
the file is accessed? Similar to a webpage counter I suppose is what I am
after.





All times are GMT +1. The time now is 09:50 AM.

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