Yes! sorry if I didnt specify that. I'm looking for the date to auto populate once their name is entered in A1
Yes! sorry if I didnt specify that. I'm looking for the date to auto populate once their name is entered in A1
Copy and paste this macro into the worksheet code module. Do the following: right click the tab name for your sheet and click 'View Code'. Paste the macro into the empty code window that opens up. Close the code window to return to your sheet. Enter a name in column A and exit the cell.
![]()
Private Sub Worksheet_Change(ByVal Target As Range) If Intersect(Target, Range("A:A")) Is Nothing Then Exit Sub Target.Offset(0, 1) = Date End Sub
You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
Practice makes perfect. I'm very far from perfect so I'm still practising.
Nothing happens.
Did you place the macro in the code module for the worksheet and not in a standard module?
See attached.
The file you posted works for me. Don't forget to exit the cell or press the RETURN key after you enter the name. This macro is a Worksheet_Change event which means that it is triggered automatically when you change the value of a cell. In your case, the change is restricted to column A. This type of macro must go into the code module for the worksheet (which you did correctly) and not in a standard module.
Not sure I understand the difference between modules (excuse my lack of knowledge) I right clicked on the sheet, selected "view code", and added the code in that blank space.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks