Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
pmj pmj is offline
external usenet poster
 
Posts: 3
Default updated cell with current time\date if any data in a row has c

thanks. How would i repeat this for every row in the worksheet.

"Gary''s Student" wrote:


As coded it only operates on the first row

Because it is worksheet code, it is very easy to install and automatic to use:

1. right-click the tab name near the bottom of the window
2. select View Code - this brings up a VBE window
3. paste the stuff in and close the VBE window

If you have any concerns, first try it on a trial worksheet.

If you save the workbook, the macro will be saved with it.


To remove the macro:

1. bring up the VBE windows as above
2. clear the code out
3. close the VBE window

To learn more about macros in general, see:

http://www.mvps.org/dmcritchie/excel/getstarted.htm

To learn more about Event Macros (worksheet code), see:

http://www.mvps.org/dmcritchie/excel/event.htm




--
Gary''s Student - gsnu200739


"pmj" wrote:

thanks. Unfortunatly I do not know much about macros I follwed the help
instructions & nothing is appearing in colum A. The first 4 rows of the seeh
are header rows. rows 5 to 505 are data rows.

help PMJ

"Gary''s Student" wrote:

This Event macro uses A1 to record time changes for row 1:

Private Sub Worksheet_Change(ByVal Target As Range)
Dim s As String
s = "A2:IV1"
If Intersect(Target, Range(s)) Is Nothing Then Exit Sub
Range("A1").Value = Now
End Sub

--
Gary''s Student - gsnu200739


"pmj" wrote:

I am looking for a formula that will put the time & date into a cell anytime
data in a row is changed.

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
Click a cell and update to current time / date ? Eric Excel Discussion (Misc queries) 3 October 4th 06 12:12 AM
Current date and time when different cell = X Workaholic Excel Worksheet Functions 3 August 13th 06 12:49 AM
current Date and time in cell Alex01 Excel Discussion (Misc queries) 3 February 24th 06 09:22 PM
Current date and time updated automatically Richard Excel Discussion (Misc queries) 7 February 4th 06 09:00 PM
how do I insert the current time (static) and date in a cell? DF Excel Discussion (Misc queries) 5 October 28th 05 05:54 PM


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