+ Reply to Thread
Results 1 to 9 of 9

Running Macros

  1. #1
    Registered User
    Join Date
    03-11-2009
    Location
    nj
    MS-Off Ver
    Excel 2003
    Posts
    5

    Running Macros

    Hey Guys,
    I'm new to using Macros in Excel and am having problems.
    Although I did not write this code, I believe that it's what I am looking for. I want to upload and append a ton of csv files, but I am getting a run-time error '424' object required message. This is the code:
    Please Login or Register  to view this content.
    I'm not sure what to do, can you help me?
    Last edited by ornamentalist; 03-11-2009 at 08:11 AM.

  2. #2
    Valued Forum Contributor Shijesh Kumar's Avatar
    Join Date
    05-26-2008
    Location
    Bangalore / India
    MS-Off Ver
    2000
    Posts
    717

    Re: Running Macros

    Hi,

    Please follow the forum rule and warp your code between /code/ tag

  3. #3
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Running Macros

    docmd suggests the code is for Access not excel
    Cheers
    Andy
    www.andypope.info

  4. #4
    Registered User
    Join Date
    03-11-2009
    Location
    nj
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Running Macros

    how can i make it for excel?

  5. #5
    Registered User
    Join Date
    03-11-2009
    Location
    nj
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Running Macros

    can anyone help?

  6. #6
    Valued Forum Contributor Shijesh Kumar's Avatar
    Join Date
    05-26-2008
    Location
    Bangalore / India
    MS-Off Ver
    2000
    Posts
    717

    Re: Running Macros

    what u r trying to achieve .. if u can tell.. i would be able to convert it to excel format..

  7. #7
    Registered User
    Join Date
    03-11-2009
    Location
    nj
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Running Macros

    Hi and thanks,
    I have over 100 .csv files in a folder, I want to combine all of the data into a single excel file after running the code. Is that hard to do? I tried running that code but I kept getting the 424 message and unfortunately, I am unfamiliar with the Excel Macros Objects, really anything about it. Can you help me out?

  8. #8
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Running Macros

    Something like this.
    No error checking in case 100 csv files exceeds row limit.
    Assume csv file contains Field header row, which is only required for the first row.
    No dates in csv that may get converted due to mmdd layout.

    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    03-11-2009
    Location
    nj
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Running Macros

    Andy, you've saved me so much time.
    Thank you

+ 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