LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default When was this cell updated?

OK...I see now. I clicked the Design button then enabled macros and reopened
the file. Super.

Now I am getting Run-time error '1004'.
Application-defined or object-defined error

Again...I just know I am doing something mind-numbingly stupid. Excel code
is just beyond me. TIA

"Geoff" wrote:

OK...I'm confused.

I added the following to the code for the sheet (right-clicked the tab and
selected View Code):

Private Sub Worksheet_Change(ByVal Target As Range)

If Target = Range("G4") Then
Range("G5").Value = Now
End If

If Target = Range("H4") Then
Range(H5).Value = Now
End If

End Sub

Right away, it worked like a charm. I saved the file and I was told I needed
to save as a macro-enable workbook. No problem. Easy peasy.

I reopened the macro-enable workbook and now it doesn't work. I change the
data in either G4 or H4 and nothing happens. So I opened the code sheet.
Nothing seems amiss. So I put a breakpoint in on the first IF statement and
nothing happens when I change the data.

I just know I am doing something so mind-numbingly stupid. TIA

 
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
cell for date last updated houseman Excel Worksheet Functions 1 October 15th 08 05:05 PM
Excel cells randomly don't get updated unless each cell is updated Lost in Excel Excel Discussion (Misc queries) 5 September 29th 08 06:56 PM
Time or row cell updated 525047[_2_] Excel Worksheet Functions 2 March 23rd 08 10:09 PM
How do I have a cell display the date its row was last updated? castell Excel Discussion (Misc queries) 2 September 19th 06 04:43 PM
Cell Value Updated based cell input DC Excel Discussion (Misc queries) 2 August 17th 05 11:07 PM


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

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"