+ Reply to Thread
Results 1 to 7 of 7

Excel 2013 - Macro to import sheet from another wb not working.

  1. #1
    Forum Contributor
    Join Date
    10-07-2013
    Location
    Wilts, England
    MS-Off Ver
    Excel 2013
    Posts
    100

    Excel 2013 - Macro to import sheet from another wb not working.

    Hi All,
    So my problem is I have this existing macro to pull a sheet from another workbook in to the active workbook. All works perfectly in 2003, I have just upgraded to 2013 and it won't work, keeps saying Can't find the file, but if I open it in 2003 it does it perfectly.

    Please Login or Register  to view this content.
    Any help getting this working would be great. I have searched the forumns but have come up empty handed.
    Thanks,

  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: Excel 2013 - Macro to import sheet from another wb not working.

    This is how I would write that:
    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
    10-07-2013
    Location
    Wilts, England
    MS-Off Ver
    Excel 2013
    Posts
    100

    Re: Excel 2013 - Macro to import sheet from another wb not working.

    Hi There, Thank you for your reply.
    This line keeps throwing me the error;

    Please Login or Register  to view this content.
    I have tried it both ways you suggested and then took out the "/" that I had in the file path but it throws the same errror either way.

    Thanks

  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: Excel 2013 - Macro to import sheet from another wb not working.

    You can add this line above that:
    Please Login or Register  to view this content.
    Examine that popup carefully, see if you can spot the naming error.

  5. #5
    Forum Contributor
    Join Date
    10-07-2013
    Location
    Wilts, England
    MS-Off Ver
    Excel 2013
    Posts
    100

    Re: Excel 2013 - Macro to import sheet from another wb not working.

    Thank you for this!
    This has helped me track down the naming error. Basically now 2013 requires the extension to be present in this case .xls must be added.
    Thank you for this!!

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

    Re: Excel 2013 - Macro to import sheet from another wb not working.

    An alternate idea is to keep the filename as is and add the .xls in the code:
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    10-07-2013
    Location
    Wilts, England
    MS-Off Ver
    Excel 2013
    Posts
    100

    Re: Excel 2013 - Macro to import sheet from another wb not working.

    Yeah thats what I did.
    Thank you so much for the help!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. VBA formatting macro that worked in Excel 2010 is not working correctly in Excel 2013
    By jayar2112 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-10-2015, 01:14 PM
  2. Macro not working after update to excel 2013
    By eskodero in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-26-2014, 11:30 AM
  3. Macro not working in excel 2013
    By kbka in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-04-2014, 06:58 AM
  4. Import AutoCAD 2013 Drawing into Excel via Macro
    By elowther in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-21-2012, 05:27 PM
  5. Sheet import macro stopped working.
    By dcgrove in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-12-2010, 04:22 PM

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