Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Tigsboy
 
Posts: n/a
Default Adding a version number to a document

Is it possible to add a version number to a workbook on saving and closing
  #2   Report Post  
Kassie
 
Posts: n/a
Default

Hi Tigsboy

Yes it is possible. You can manually change the name of the document, e.g.
from Draftv1.xls to Draftv1.1.xls.

Or else, you can use a macro to increment your version number every time you
save it
--
ve_2nd_at. Randburg, Gauteng, South Africa


"Tigsboy" wrote:

Is it possible to add a version number to a workbook on saving and closing

  #3   Report Post  
dominicb
 
Posts: n/a
Default


Good afternoon Tigsboy

You will need a macro to do this for you, but just to put you on the
right track:

Private Sub Workbook_BeforeClose(Cancel As Boolean)
With Range("A1")
.Value = .Value + 1
End With
End Sub

This routine when placed in the ThisWorkbook portion of the VBE will
increment the value in cell A1 by 1 everytime the workbook is closed

HTH

DominicB


--
dominicb
------------------------------------------------------------------------
dominicb's Profile: http://www.excelforum.com/member.php...o&userid=18932
View this thread: http://www.excelforum.com/showthread...hreadid=388929

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
Seed numbers for random number generation, uniform distribution darebo Excel Discussion (Misc queries) 3 April 21st 23 09:02 PM
How do I activate Document Version management in Excel just like . Pradeep Khanna Excel Discussion (Misc queries) 0 April 22nd 05 10:30 AM
duplicate number Daniell Excel Discussion (Misc queries) 1 March 16th 05 07:02 PM
How to embed Word document into Excel and retain sizing, formatti. Kent Excel Discussion (Misc queries) 0 February 2nd 05 07:37 PM
Random Number Questions Greegan Excel Worksheet Functions 1 January 5th 05 02:00 AM


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