+ Reply to Thread
Results 1 to 5 of 5

Trying to finish a VBA code to copy cells from multiple workbooks and worksheets

  1. #1
    Registered User
    Join Date
    09-03-2014
    Location
    Chicago
    MS-Off Ver
    2010
    Posts
    2

    Talking Trying to finish a VBA code to copy cells from multiple workbooks and worksheets

    I am trying to copy cells from multiple workbooks and worksheets. The worksheets are all identical, except for an "Instructions" worksheet. Currently, I have a code that can pull the cells from multiple workbooks, but only one worksheet. Alternatively, I have found a few codes to gather the cells from all the worksheets, but only one workbook. I am having trouble combining the codes to copy the cells from all workbooks and worksheets (my VBA experience is limiting me).

    Here's what I have:

    Please Login or Register  to view this content.
    That code copies in the cells I need for all the workbooks in the directory, but I don't know how to change the sheet name to reference all sheets. I have tried adding this code, but it does not work:

    Please Login or Register  to view this content.

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Trying to finish a VBA code to copy cells from multiple workbooks and worksheets

    Welcome to the Forum!

    I changed your code a little but I haven't tested it:

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Registered User
    Join Date
    09-03-2014
    Location
    Chicago
    MS-Off Ver
    2010
    Posts
    2

    Re: Trying to finish a VBA code to copy cells from multiple workbooks and worksheets

    This is odd...I copied your code in and changed the file location, but when I ran it nothing happened. No error, but still a blank worksheet. I'm trying to see if I did something wrong...

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Trying to finish a VBA code to copy cells from multiple workbooks and worksheets

    Duhhh - we never opened The Book!

    Please Login or Register  to view this content.
    *still not tested

  5. #5
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Trying to finish a VBA code to copy cells from multiple workbooks and worksheets

    Duhhh - we never opened The Book!

    Please Login or Register  to view this content.
    *still not tested -and, thanks for the rep!

+ 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. [SOLVED] VBA code to copy cell range from all worksheets for multiple workbooks
    By Beany213 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 03-21-2013, 12:34 PM
  2. Replies: 20
    Last Post: 03-13-2013, 04:15 PM
  3. Copy/Paste Range of Data from Multiple Workbooks/Worksheets to Master Workbook/Worksheets
    By NumberCruncher311 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-19-2013, 08:21 PM
  4. [SOLVED] Copy cells from multiple worksheets and workbooks to one master workbook
    By Concept in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-30-2012, 01:42 PM
  5. copy selected range from multiple workbooks into multiple worksheets in one workbook
    By novak100 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-13-2012, 05:52 AM

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