Closed Thread
Results 1 to 7 of 7

Insert permanent Date & Time stamp if & when another cell is populated

  1. #1
    Registered User
    Join Date
    03-20-2009
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    56

    Insert permanent Date & Time stamp if & when another cell is populated

    All,

    I want to put a permanent date & time stamp in cell A1 (date) and cell A2 (Time) when cell A3 is populated by any character which would be an inputters initials.

    I'm thinking that it will be an "IF" statement but then I am getting confused about how I make it not update when the spreadsheet is opened at a later date and time.

    Suggestions as ever gratefully appreciated.

    Best regards,

    David
    Last edited by David_S_Walker; 01-24-2011 at 12:00 PM.

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Insert permanent Date & Time stamp if & when another cell is populated

    To make the date/time stamp static you really need to use a worksheet change event in VBA like this:

    Please Login or Register  to view this content.

    Right click on the worksheet tab, select view code and paste the above onto the page that appears.

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Registered User
    Join Date
    03-20-2009
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    56

    Re: Insert permanent Date & Time stamp if & when another cell is populated

    Thank you kind sir - Works for me!

  4. #4
    Registered User
    Join Date
    03-20-2009
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    56

    Re: Insert permanent Date & Time stamp if & when another cell is populated

    Anyone,

    So I now realise that I need to recognise input in cell C52 and to put the date and time in D52/E52 respectively so I presume that I just need to change the cell references in the code you provided? I tried it but it doesn't seem to work? am I doing something daft?

    Best regards,

    David

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Insert permanent Date & Time stamp if & when another cell is populated

    This is slightly lengthier process, but I think it's important to include a "check" to see if there is already a date/time stamp in columns D and E on that row and give the user the option to change them, or not. Also, this version will work even if you change more than one cell at a time.

    Please Login or Register  to view this content.
    Last edited by JBeaucaire; 01-24-2011 at 04:25 PM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  6. #6
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Insert permanent Date & Time stamp if & when another cell is populated

    Quote Originally Posted by David_S_Walker View Post
    So I now realise that I need to recognise input in cell C52 and to put the date and time in D52/E52 respectively
    This should do that:

    Please Login or Register  to view this content.

    Dom

  7. #7
    Registered User
    Join Date
    03-13-2007
    Posts
    71

    Re: Insert permanent Date & Time stamp if & when another cell is populated

    sorry - moved to a new thread
    Last edited by howardjo; 03-12-2014 at 06:12 AM.
    HowardJo

Closed Thread

Thread Information

Users Browsing this Thread

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

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