Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default new version# when opening file

Hi,

I need a spreadsheet where a cell (fx."A1") shows the latest report version,
i.e. the cell needs to change the version-number from # to #+1, when you open
the report.
Does anyone know a macro which can do this ?

BR,
Jakob
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default new version# when opening file

Private Sub Workbook_Open()
With ThisWorkbook.Worksheets("Sheet1").Range("A1")
.Value = .Value + 1
End With
ThisWorkbook.Save
End Sub

'This is workbook event code.
'To input this code, right click on the Excel icon on the worksheet
'(or next to the File menu if you maximise your workbooks),
'select View Code from the menu, and paste the code


--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Jayjay" wrote in message
...
Hi,

I need a spreadsheet where a cell (fx."A1") shows the latest report
version,
i.e. the cell needs to change the version-number from # to #+1, when you
open
the report.
Does anyone know a macro which can do this ?

BR,
Jakob



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default new version# when opening file

Thanks Bob,
Perfect!

"Jayjay" wrote:

Hi,

I need a spreadsheet where a cell (fx."A1") shows the latest report version,
i.e. the cell needs to change the version-number from # to #+1, when you open
the report.
Does anyone know a macro which can do this ?

BR,
Jakob

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
opening .xls in 2007 version bseidenstat Excel Discussion (Misc queries) 1 February 12th 10 08:48 PM
opening newer version of excel serg c Excel Discussion (Misc queries) 2 November 12th 08 08:55 PM
Trouble opening PC version of Workbook on MAC alina b. Excel Programming 2 June 16th 06 12:06 AM
Error opening Excel in different version Rob Excel Discussion (Misc queries) 2 June 6th 06 02:02 AM
TROUBLE OPENING OLD WORKBOOK VERSION medford1986 Excel Discussion (Misc queries) 2 May 1st 06 04:06 AM


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