Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default times of opened


how can i know howm many times the workbook had been opened?
say in A1 shows how many times

--
jinvicto
-----------------------------------------------------------------------
jinvictor's Profile: http://www.excelforum.com/member.php...fo&userid=3409
View this thread: http://www.excelforum.com/showthread.php?threadid=55305

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default times of opened

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" wrote
in message ...

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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 747
Default times of opened

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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Limiting Number of Times a Workbook can be Opened Dan R Excel Worksheet Functions 1 February 13th 07 03:28 PM
I need to be able to count the no. of times a sprdsheet is opened Melvin P Excel Discussion (Misc queries) 2 January 22nd 07 11:16 AM
A macro that counts the number of times a file is opened [email protected] Excel Discussion (Misc queries) 2 December 20th 06 01:53 PM
history of dates/times an excel worksheet was opened? Randy Excel Discussion (Misc queries) 0 July 18th 06 09:19 PM
stop excel file opened as read only if already opened by another u bobm Excel Programming 3 August 5th 05 04:11 PM


All times are GMT +1. The time now is 08:17 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"