#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 49
Default Auto Update

In a document I have I want to be able to display the last time it was
updated on the worksheet. To do this i crested a macro which copies and
pastes the =NOW() funtion into the display cell. This is simply assigned to a
command button and after an update all the user needs to do is click a button
and the last update is completed.

However this seems like to much to ask of certain people and they are
forgetting...cant be bothered to click the button so the last updated field
is wrong.

Is there a way to automate it so that whenever a field is edited (on the
entire worksheet) it auto refreshes the last updated field accordingly???

Cheers,
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Auto Update

Right click the sheet tab view code and paste the below code in the code
panel. Get back to workbook and try...Adjust the range A1 to suit your
reqirement

Private Sub Worksheet_Change(ByVal Target As Range)
Range("A1") = Now
End Sub

If this post helps click Yes
---------------
Jacob Skaria


"Gazz_85" wrote:

In a document I have I want to be able to display the last time it was
updated on the worksheet. To do this i crested a macro which copies and
pastes the =NOW() funtion into the display cell. This is simply assigned to a
command button and after an update all the user needs to do is click a button
and the last update is completed.

However this seems like to much to ask of certain people and they are
forgetting...cant be bothered to click the button so the last updated field
is wrong.

Is there a way to automate it so that whenever a field is edited (on the
entire worksheet) it auto refreshes the last updated field accordingly???

Cheers,

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 49
Default Auto Update

Thanks for that,

it works well, it does make the doc a little slower as it takes a little
processing time. Do you know any alternatives that wouldn't do this?? if not
dont worry it works fine

"Jacob Skaria" wrote:

Right click the sheet tab view code and paste the below code in the code
panel. Get back to workbook and try...Adjust the range A1 to suit your
reqirement

Private Sub Worksheet_Change(ByVal Target As Range)
Range("A1") = Now
End Sub

If this post helps click Yes
---------------
Jacob Skaria


"Gazz_85" wrote:

In a document I have I want to be able to display the last time it was
updated on the worksheet. To do this i crested a macro which copies and
pastes the =NOW() funtion into the display cell. This is simply assigned to a
command button and after an update all the user needs to do is click a button
and the last update is completed.

However this seems like to much to ask of certain people and they are
forgetting...cant be bothered to click the button so the last updated field
is wrong.

Is there a way to automate it so that whenever a field is edited (on the
entire worksheet) it auto refreshes the last updated field accordingly???

Cheers,

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Auto Update

See whether there is a difference now...

Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = False
Application.Calculation = xlCalculationManual
Range("A1") = Now
Application.Calculation = xlCalculationAutomatic
Application.EnableEvents = True
End Sub

If this post helps click Yes
---------------
Jacob Skaria


"Gazz_85" wrote:

Thanks for that,

it works well, it does make the doc a little slower as it takes a little
processing time. Do you know any alternatives that wouldn't do this?? if not
dont worry it works fine

"Jacob Skaria" wrote:

Right click the sheet tab view code and paste the below code in the code
panel. Get back to workbook and try...Adjust the range A1 to suit your
reqirement

Private Sub Worksheet_Change(ByVal Target As Range)
Range("A1") = Now
End Sub

If this post helps click Yes
---------------
Jacob Skaria


"Gazz_85" wrote:

In a document I have I want to be able to display the last time it was
updated on the worksheet. To do this i crested a macro which copies and
pastes the =NOW() funtion into the display cell. This is simply assigned to a
command button and after an update all the user needs to do is click a button
and the last update is completed.

However this seems like to much to ask of certain people and they are
forgetting...cant be bothered to click the button so the last updated field
is wrong.

Is there a way to automate it so that whenever a field is edited (on the
entire worksheet) it auto refreshes the last updated field accordingly???

Cheers,

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 49
Default Auto Update

Excellent!!!!!!!!!!!!!!!

"Jacob Skaria" wrote:

See whether there is a difference now...

Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = False
Application.Calculation = xlCalculationManual
Range("A1") = Now
Application.Calculation = xlCalculationAutomatic
Application.EnableEvents = True
End Sub

If this post helps click Yes
---------------
Jacob Skaria


"Gazz_85" wrote:

Thanks for that,

it works well, it does make the doc a little slower as it takes a little
processing time. Do you know any alternatives that wouldn't do this?? if not
dont worry it works fine

"Jacob Skaria" wrote:

Right click the sheet tab view code and paste the below code in the code
panel. Get back to workbook and try...Adjust the range A1 to suit your
reqirement

Private Sub Worksheet_Change(ByVal Target As Range)
Range("A1") = Now
End Sub

If this post helps click Yes
---------------
Jacob Skaria


"Gazz_85" wrote:

In a document I have I want to be able to display the last time it was
updated on the worksheet. To do this i crested a macro which copies and
pastes the =NOW() funtion into the display cell. This is simply assigned to a
command button and after an update all the user needs to do is click a button
and the last update is completed.

However this seems like to much to ask of certain people and they are
forgetting...cant be bothered to click the button so the last updated field
is wrong.

Is there a way to automate it so that whenever a field is edited (on the
entire worksheet) it auto refreshes the last updated field accordingly???

Cheers,

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
Sometimes formuli in workbook don't auto update with auto-recal on PE2 Excel Worksheet Functions 1 October 12th 06 03:49 PM
Auto Update ExcelStress Excel Worksheet Functions 0 July 19th 05 07:36 PM
excel links update not working in auto, calculations in auto Mikey Boy Excel Worksheet Functions 0 December 7th 04 11:53 PM
auto update xyncro Excel Worksheet Functions 1 November 5th 04 02:03 PM
auto update xyncro Excel Worksheet Functions 0 November 5th 04 11:03 AM


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