Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default 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.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default 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.

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
how do i increase invoice number everytime its opened? stacey Excel Discussion (Misc queries) 1 March 3rd 06 10:37 AM
increasing a value everytime excel is opened? chris leight Excel Worksheet Functions 1 February 22nd 06 03:59 AM
how can I make a form number change everytime the form is opened babydumplingspita Excel Worksheet Functions 1 October 10th 05 07:58 PM
Link not updated everytime spreadsheet opened Olivier D. Excel Worksheet Functions 0 September 28th 05 01:48 PM
A new sequence number in file everytime it is opened Tiger Claw Excel Worksheet Functions 1 June 15th 05 03:37 PM


All times are GMT +1. The time now is 07:06 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"