Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 84
Default Automatically insert last updated date

Is it possible for a last updated date to be inserted into a cell in a
spreadsheet that is only updatted if the spreadsheet is changed?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,726
Default Automatically insert last updated date

'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

Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
Worksheets("Sheet1").Range("A1") = Format(Date, "dd mmm yyyy")
End Sub


--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"Marie Bayes" wrote in message
...
Is it possible for a last updated date to be inserted into a cell in a
spreadsheet that is only updatted if the spreadsheet is changed?



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 84
Default Automatically insert last updated date

Brilliant, thanks.

"Bob Phillips" wrote:

'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

Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
Worksheets("Sheet1").Range("A1") = Format(Date, "dd mmm yyyy")
End Sub


--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"Marie Bayes" wrote in message
...
Is it possible for a last updated date to be inserted into a cell in a
spreadsheet that is only updatted if the spreadsheet is changed?




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Automatically insert last updated date - BobPhillips

I have followed the instructions for inserting the last update date, but nothing appears on my spreadsheet. What am I doing wrong?

EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com
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
Automatically inserting a column Tara Excel Worksheet Functions 7 August 18th 06 02:29 PM
Mileage Claim Formula johndavies New Users to Excel 4 August 14th 06 09:24 AM
Insert new date once. Eric Vogel Excel Worksheet Functions 1 July 6th 06 04:17 PM
Insert date automatically TUNGANA KURMA RAJU Excel Discussion (Misc queries) 1 September 29th 05 08:34 PM
Automatically Insert DATE, so that DATE will NOT change Cie Excel Worksheet Functions 4 April 4th 05 05:51 PM


All times are GMT +1. The time now is 07:13 AM.

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"