date row last modified - debug

A

alex

I'm a real nubie with this macro stuff. I googled for a macro and the
below one does exactly what I want but I need help running/debuging
it.

I've read enough Excel 2003 documentation that I need to reference it
from Sub Workbook_Open() .... what I'm missing is how the two
arguments are passed to the sub.

Could I get help debugging and adding to Workbook_Open()

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
'Puts the date & time in column K when the data changes,
'in the rows in columns A-J
'put in worksheet code
If Target.Count > 1 Then Exit Sub
Select Case Target.Column

'columns to check for data change
Case 1 To 10

'where the time is put
Cells(Target.Row, 11) = Now()

End Select
End Sub


(found at: http://groups.google.com/groups?hl=...%24qP86CHA.3332%40TK2MSFTNGP11.phx.gbl&rnum=1
)
 
F

Frank Kabel

Hi
just put this code in your worksheet module (not a standard module).
The parameters are passed automatically by Excel.
 
F

Frank Kabel

Hi Alex
you put your code in the workBOOK module. It has to go in the correct
workSHEET module!
 
A

alex

Ahhh, I see what you mean now. This is great, it works!
Thanks very much.
Regards,
Alex
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top