+ Reply to Thread
Results 1 to 5 of 5

Sheet import macro stopped working.

  1. #1
    Forum Contributor
    Join Date
    02-16-2008
    Location
    Mansfield, TX
    Posts
    324

    Sheet import macro stopped working.

    Hello, I have been using this macro succesfuly for some time now and today it decided to not work. Can someone help me troubleshoot it?

    It fails on this line:
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    I have included the workbook that contains the macro and a sample import workbook.

    Here is the link to the original thread:
    http://www.excelforum.com/excel-prog...readsheet.html

    Thanks for any help you may be able to provide!
    Attached Files Attached Files
    Last edited by dcgrove; 05-12-2010 at 04:22 PM.

  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: Sheet import macro stopped working.

    No sample data makes testing your macro troublesome for us, at best. Much better to simply replace sensitive data with generic entries...Name1, Name2, etc.

    Your macro runs for me, but I have no data to verify it's accuracy. It doesn't stall at the point you've noted.

    Maybe:
    Please Login or Register  to view this content.
    _________________
    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
    Forum Contributor
    Join Date
    02-16-2008
    Location
    Mansfield, TX
    Posts
    324

    Re: Sheet import macro stopped working.

    Jerry, the sample data is in the credit test.xls sheet. I import that sheet into the complaints test.xls sheet via the macro.

  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: Sheet import macro stopped working.

    Sorry, of course it is. My bad.

    The macro seems more complex than is necessary. Try this, it copies the columns of data all at once, and adds the formulas in columns U and V, too:
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by JBeaucaire; 05-12-2010 at 04:50 PM.

  5. #5
    Forum Contributor
    Join Date
    02-16-2008
    Location
    Mansfield, TX
    Posts
    324

    Re: Sheet import macro stopped working.

    That worked!

    Thanks!

+ 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