Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 18
Default auto update of date and time whenever changes are made to a xcel s

How to set auto update of date and time in a excel sheet, so that whenever
any changes to the sheet (any information is changed) is made and saved, it
automatically updates the date and time of the change...



  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default auto update of date and time whenever changes are made to a xcel s

Hi,

One way. Alt +F11 to open vb editor. Double click 'This workbook' and paste
this in on the right.

Change the sheet and range to suit your requirements.

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
Sheets("Sheet1").Range("A1").Value = "Last saved " & Now
End Sub

Mike

"saran" wrote:

How to set auto update of date and time in a excel sheet, so that whenever
any changes to the sheet (any information is changed) is made and saved, it
automatically updates the date and time of the change...



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 18
Default auto update of date and time whenever changes are made to a xc

Hi..Thanks for the response. Can u please elaborate on the following.

1) My excel sheet doesn't respond to Alt +F11. Is there a specific location
in the excel sheet, wherin which this shortcut key works?

2) Where do i copy & paste this info u had sent?

Saran

"Mike H" wrote:

Hi,

One way. Alt +F11 to open vb editor. Double click 'This workbook' and paste
this in on the right.

Change the sheet and range to suit your requirements.

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
Sheets("Sheet1").Range("A1").Value = "Last saved " & Now
End Sub

Mike

"saran" wrote:

How to set auto update of date and time in a excel sheet, so that whenever
any changes to the sheet (any information is changed) is made and saved, it
automatically updates the date and time of the change...



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,388
Default auto update of date and time whenever changes are made to a xc

Hi,
If Alt with F11 isn't working, right-click your sheet tab and choose View
Code.
The VBA window will open.
Paste Mike's code into the blank section on the right, then close the VBA
window.
Dave.
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default auto update of date and time whenever changes are made to a xc

Hi,

It has to be pasted into 'This Workbook' so as Dave says, right click the
sheet tab, view code, double click 'This workbook' and then paste it in on
the right.

Mike

"Dave" wrote:

Hi,
If Alt with F11 isn't working, right-click your sheet tab and choose View
Code.
The VBA window will open.
Paste Mike's code into the blank section on the right, then close the VBA
window.
Dave.



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default auto update of date and time whenever changes are made to a xc

Dave

I think you meant to say "right-click on the Excel Icon left of "File" on the
menu"

The code Mike posted is workbook event code, not sheet event code.


Gord Dibben MS Excel MVP

On Sun, 22 Jun 2008 05:05:01 -0700, Dave wrote:

Hi,
If Alt with F11 isn't working, right-click your sheet tab and choose View
Code.
The VBA window will open.
Paste Mike's code into the blank section on the right, then close the VBA
window.
Dave.


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 18
Default auto update of date and time whenever changes are made to a xc

Hi Dave.
Thanks for the response.
But view code option is not highlighted in the work sheet and hence could
not select it.Can u pl let me know what may b the problem.



  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 18
Default auto update of date and time whenever changes are made to a xc



Hi...
I could resolve the problem of my previous post.

The solution given by u for the autoupdate is working satisfactorily.

Thank u very much for the support

Saran
  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 18
Default auto update of date and time whenever changes are made to a xc

Hi..
this is working fine if i start a new work sheet. But when i try to
incorporate it in an already available worksheet, it says run time error 9.

Can u pl suggest what may b the problem.



Saran

  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 18
Default auto update of date and time whenever changes are made to a xc

This problem is more predominant in an excel sheet having more than one sheet.
Can u pl help me to fix the problem

"saran" wrote:

Hi..
this is working fine if i start a new work sheet. But when i try to
incorporate it in an already available worksheet, it says run time error 9.

Can u pl suggest what may b the problem.



Saran

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
put date and time in cells after entry made in shared workbook robzrob Excel Worksheet Functions 2 April 10th 08 09:13 PM
Formula that will record the time and date when an entry is made on a sheet [email protected] Excel Worksheet Functions 3 October 11th 07 08:28 AM
Last data entry made time and Date show in each worksheet Rajat Excel Worksheet Functions 3 November 12th 06 01:27 PM
How to prevent file date change when no update made in Excel? John2348 Excel Discussion (Misc queries) 0 June 16th 06 04:27 PM
Auto Update after certain time period (60 sec) mrdelia New Users to Excel 5 July 10th 05 05:06 PM


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