+ Reply to Thread
Results 1 to 11 of 11

Frozen date stamp

Hybrid View

  1. #1
    Registered User
    Join Date
    11-19-2018
    Location
    Houston
    MS-Off Ver
    1810
    Posts
    58

    Re: Frozen date stamp

    Yes! sorry if I didnt specify that. I'm looking for the date to auto populate once their name is entered in A1

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,026

    Re: Frozen date stamp

    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.

  3. #3
    Registered User
    Join Date
    11-19-2018
    Location
    Houston
    MS-Off Ver
    1810
    Posts
    58

    Re: Frozen date stamp

    Nothing happens.

  4. #4
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,026

    Re: Frozen date stamp

    Did you place the macro in the code module for the worksheet and not in a standard module?

  5. #5
    Registered User
    Join Date
    11-19-2018
    Location
    Houston
    MS-Off Ver
    1810
    Posts
    58

    Re: Frozen date stamp

    See attached.
    Attached Files Attached Files

  6. #6
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,026

    Re: Frozen date stamp

    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.

  7. #7
    Registered User
    Join Date
    11-19-2018
    Location
    Houston
    MS-Off Ver
    1810
    Posts
    58

    Re: Frozen date stamp

    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.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Open workbook to todays date. with frozen cells
    By nub9l in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-21-2017, 10:03 AM
  2. Need vba code to change date&time stamp as date format dd-mmm-yy in A:A rng
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-03-2014, 06:08 AM
  3. How do I keep the date entry TODAY() frozen on that specific date.
    By chartkamp in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-07-2014, 03:58 PM
  4. Replies: 6
    Last Post: 02-08-2013, 08:29 AM
  5. Need to capture date data in a text string containing a date and time stamp
    By Grilleman in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-07-2013, 01:14 PM
  6. Frozen panes won't stay frozen
    By Irshlas in forum Excel General
    Replies: 0
    Last Post: 03-12-2009, 03:15 PM
  7. [SOLVED] Create a button that will date stamp todays date in a cell
    By Tom Meacham in forum Excel General
    Replies: 3
    Last Post: 01-10-2006, 09:10 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1