Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Click a cell and update to current time / date ? | Excel Discussion (Misc queries) | |||
Current date and time when different cell = X | Excel Worksheet Functions | |||
current Date and time in cell | Excel Discussion (Misc queries) | |||
Current date and time updated automatically | Excel Discussion (Misc queries) | |||
how do I insert the current time (static) and date in a cell? | Excel Discussion (Misc queries) |