ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   how do i count everytime a spreadsheet is opened (https://www.excelbanter.com/excel-discussion-misc-queries/135011-how-do-i-count-everytime-spreadsheet-opened.html)

nipper

how do i count everytime a spreadsheet is opened
 
Within microsoft excel, I need to show a counter that will increase everytime
that file is opened.

Gary''s Student

how do i count everytime a spreadsheet is opened
 
The following will put a counter in Sheet1 cell A1. Paste the macro in
Workbook code:


Private Sub Workbook_Open()
Set r = Sheets("Sheet1").Range("A1")
r.Value = r.Value + 1
End Sub
--
Gary''s Student
gsnu200710


"nipper" wrote:

Within microsoft excel, I need to show a counter that will increase everytime
that file is opened.



All times are GMT +1. The time now is 11:45 PM.

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