Hi
do you mean to count how many times a file has been opened?. If yes you
may try the following code. Put this in your workbook module (not in a
standard module). It will increment the value in cell A1 on sheet1
Private Sub Workbook_Open()
with Worksheets("Sheet1").range("A1")
.Value = .Value + 1
end with
End Sub
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.