how do i count everytime a spreadsheet is opened

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Within microsoft excel, I need to show a counter that will increase everytime
that file 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
 

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