+ Reply to Thread
Results 1 to 5 of 5

Macro Autofill

  1. #1
    Registered User
    Join Date
    11-27-2007
    Posts
    16

    Macro Autofill

    Each day I copy a range of data from one spreadsheet into a larger sheet where all the data is kept on an ongoing basis. The data is copied beginning in column B. Then in column A I enter today's date and copy it down.

    I've written a macro to copy the necessary range into the second worksheet, but can't figure out how to get the date entered only in the rows that are newly occupied.

    Please help!

  2. #2
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,527
    Hi there,

    Let me know if incorporating the following code into your existing macro does the trick:

    Please Login or Register  to view this content.
    HTH

    Robert

  3. #3
    Registered User
    Join Date
    11-27-2007
    Posts
    16
    That did it...thank you Robert!

  4. #4
    Registered User
    Join Date
    11-27-2007
    Posts
    16
    Actually there's one strange thing here...even though the code you supplied specifies date format dd/mm/yyyy and the column is formatted the same way...when I run the macro it comes out mm/dd/yyyy. Any idea why it would do that?

  5. #5
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,527
    Hi there,

    Not really sure, but as it worked fine for me and considering I'm in Australia, I'd say it's to do with with your regional settings.

    See if putting this line of code...

    Please Login or Register  to view this content.
    ...immediately above this line

    Please Login or Register  to view this content.
    helps at all.

    Robert

+ 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