how can i know howm many times the workbook had been opened?
say in A1 shows how many times.
how can i know howm many times the workbook had been opened?
say in A1 shows how many times.
Private Sub Workbook_Open()
With Worksheets("Sheet1")
.Range("A1").Value = _
.Range("A1").Value + 1
End With
ThisWorkbook.Save
End Sub
Placed in the thisworkbook module
See Chip Pearson's page on events
http://www.cpearson.com/excel/events.htm
--
Regards,
Tom Ogilvy
"jinvictor" <[email protected]> wrote
in message news:[email protected]...
>
> how can i know howm many times the workbook had been opened?
> say in A1 shows how many times.
>
>
> --
> jinvictor
> ------------------------------------------------------------------------
> jinvictor's Profile:
http://www.excelforum.com/member.php...o&userid=34099
> View this thread: http://www.excelforum.com/showthread...hreadid=553052
>
See John Walkenbauch's simple method. I suggest keeping it outside of the wb
instead:
http://j-walk.com/ss/excel/tips/tip95.htm
Greg
"jinvictor" wrote:
>
> how can i know howm many times the workbook had been opened?
> say in A1 shows how many times.
>
>
> --
> jinvictor
> ------------------------------------------------------------------------
> jinvictor's Profile: http://www.excelforum.com/member.php...o&userid=34099
> View this thread: http://www.excelforum.com/showthread...hreadid=553052
>
>
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks