+ Reply to Thread
Results 1 to 3 of 3

code help - consolidating multiple workbooks into one worksheet

  1. #1
    Registered User
    Join Date
    12-08-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    2

    code help - consolidating multiple workbooks into one worksheet

    Hi,

    I'm quite new to VBScript but for the past day I've been trying to consolidate certain data onto one sheet. I got it to work in when it is all from one workbook, but now I'm trying to go by folder. What I have below is not working, and it seems to just be around where I'm trying to copy and paste the data.

    Basically in any given workbook I only have one tab and all I need from each one is the information from D2:D61 pasted as transposed into a new masterworkbook (or just a new sheet in the workbook I have open, anything works)

    Please Login or Register  to view this content.
    Any help is greatly appreciated!
    Last edited by pike; 12-09-2010 at 02:07 AM. Reason: code tags for newbie

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: code help - consolidating multiple workbooks into one worksheet

    Your code is pasting to the activesheet, which will be the one with the data in - the workbook that has been opened.

    See if this works
    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    12-08-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: code help - consolidating multiple workbooks into one worksheet

    Works flawlessly, 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