+ Reply to Thread
Results 1 to 4 of 4

Auto Date Stamp Column A when data in Column B

  1. #1
    Registered User
    Join Date
    10-29-2011
    Location
    England
    MS-Off Ver
    Excel 2000
    Posts
    12

    Auto Date Stamp Column A when data in Column B

    Hi Everyone

    I have a workbook with a button called Archive and when this is pressed it takes data from Sheet 4 and places it in Sheet 3. Now i would like to add a date in column A of sheet 3 when the data is placed there.

    I have a little code that works great by itself but when used in conjunction with the archive button it just fills columns B to AB with the number 40847 i dont know where this is coming from. Columns AC to BE work ok.

    Any help on this would be great thanks
    Attached Files Attached Files

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

    Re: Auto Date Stamp Column A when data in Column B

    40847 is the actual "number" that is Excel's reference for dates. Just format that cell(s) with the date format you want and you'll see.

    40847 = 10/31/2011

    Happy Halloween!
    _________________
    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!)

  3. #3
    Registered User
    Join Date
    10-29-2011
    Location
    England
    MS-Off Ver
    Excel 2000
    Posts
    12

    Re: Auto Date Stamp Column A when data in Column B

    Thanks for the quick responce and clarification on where 40847 was coming from i thought it was strange.

    The problem that i still have is that the cells where this number is populated should have data that is transfered from Sheet 4 not the date which should only be in column A on sheet 3.

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

    Re: Auto Date Stamp Column A when data in Column B

    The problem was caused by the worksheet_change macro in your "Archive" sheet. Change to:
    Please Login or Register  to view this content.

    You need to rename your COPY macro to something else... COPY is an Excel VBA command, this is just asking for trouble using that as a macro name. Name it ArchiveData instead.

    Also, I cleaned it up the other macros just a little bit.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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