+ Reply to Thread
Results 1 to 12 of 12

Date stamping a cell

  1. #1
    Registered User
    Join Date
    10-12-2007
    Posts
    13

    Date stamping a cell

    Is there a way to put a date stamp in a cell.

    IE when cell D2 has any text/numbers entered into it. Cell C2 will put the current date in it and never change.

    Thanks

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    See link

    http://www.mcgimpsey.com/excel/timestamp.html

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    10-12-2007
    Posts
    13
    I'm useless,

    Can't get it to work. I think i need everything hand fed

    The cell I want the date in is, C2 if any text is entered in d2

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Try attachment. Uses the code. Right click sheet and select view code

    VBA Noob
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    10-12-2007
    Posts
    13
    can't download file, says access is denied.

    again

  6. #6
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Do this

    Right click sheet name > select view code > paste in the below code > Close VB editor

    Please Login or Register  to view this content.
    VBA Noob

  7. #7
    Registered User
    Join Date
    10-12-2007
    Posts
    13
    Thanks,

    but when i enter text I just get loads of #########

    The cells are formatted for dates.

  8. #8
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Widen the column

    VBA Noob

  9. #9
    Registered User
    Join Date
    10-12-2007
    Posts
    13
    brilliant, so can i copy that all the way down the sheet??

    thanks for this

  10. #10
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Change range on this line

    Please Login or Register  to view this content.
    to either

    Please Login or Register  to view this content.
    or

    Please Login or Register  to view this content.
    VBA Noob

  11. #11
    Registered User
    Join Date
    10-12-2007
    Posts
    13
    Thanks

    Works

  12. #12
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Glad it helped

    VBA Noob

+ Reply to 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