+ Reply to Thread
Results 1 to 4 of 4

Cannot get VBA to work correctly to just pull one sheet

  1. #1
    Registered User
    Join Date
    01-11-2010
    Location
    North Carolina
    MS-Off Ver
    Excel 2007
    Posts
    38

    Cannot get VBA to work correctly to just pull one sheet

    Hello,

    I am trying to get the following code to pull from one sheet in a workbook, not just whatever sheet is active. I know that I need to put something like
    Please Login or Register  to view this content.
    in here, but I cannot get it to work. The rest of the code works perfectly because I am trying to pull in a bunch of data from different workbooks into one sheet. The problem is that it will only pull the data from the active sheet in each workbook. The data needs to be pulled from "sheet1". I believe the line of code that I need to change is
    Please Login or Register  to view this content.
    but I could be wrong. Thanks for your help.
    Attached Files Attached Files

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Cannot get VBA to work correctly to just pull one sheet

    Try this, completely untested:
    Please Login or Register  to view this content.
    Last edited by shg; 04-20-2010 at 04:58 PM.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    01-11-2010
    Location
    North Carolina
    MS-Off Ver
    Excel 2007
    Posts
    38

    Re: Cannot get VBA to work correctly to just pull one sheet

    That works, but I still need it to just pull from "sheet1" in each workbook. Can I add anything in there to make it do that? Thank you.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Cannot get VBA to work correctly to just pull one sheet

    Please Login or Register  to view this content.

+ 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