Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default how to increment a value by 1 everytime excel is closed?

i want to increment a value by 1 everytime an excel sheet is closed. how to
do that?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 152
Default how to increment a value by 1 everytime excel is closed?

Private Sub Workbook_BeforeClose(Cancel As Boolean)
'On Close
Range("YourValue") = Range("YourValue") + 1
End Sub
Lou

"ruzual" wrote:

i want to increment a value by 1 everytime an excel sheet is closed. how to
do that?

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
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
Where is the closed folder button in Excel? Susan ARC Excel Discussion (Misc queries) 2 July 25th 06 08:16 AM
Excel file with hyperlinks takes a long time to open over the network Didier P Links and Linking in Excel 3 July 4th 06 04:39 PM
How do I import data from a closed Excel Spreadsheet? Tomcat Excel Discussion (Misc queries) 2 May 30th 06 12:51 PM
Help - Closed excel doc with out saving it Sugan Excel Discussion (Misc queries) 3 May 16th 06 01:00 PM


All times are GMT +1. The time now is 09:48 PM.

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

About Us

"It's about Microsoft Excel"