+ Reply to Thread
Results 1 to 2 of 2

Copy Multiple Worksheets into new columns

  1. #1
    Registered User
    Join Date
    12-12-2012
    Location
    australia
    MS-Off Ver
    Excel 2010
    Posts
    4

    Copy Multiple Worksheets into new columns

    Hey thank you so much for your help i just ran the code then and its giving me "Run-time error '91': object variable or with block variable not set" and as i am still new to excel code i am struggling to fix it when i click debug it highlights the second line "thisWB.Activate" however i really dont know what im looking at enough to even start trying to fix it.
    So to make it clear what i want.
    In sheet one of the Attached file it has months jan-dec i would like a macro or way to move all the data from 12 separate excel files into sheet one of this spread sheet.

    Below is code that i have taken from the internet and need help fixing/ tailoring it to my situation
    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Copy Multiple Worksheets into new columns

    The line:
    xlsCommonSheet = Range("Sheet_Name_to_Combine")
    is causing the first error. "Sheet_Name_to_Combine" is not found anywhere else in your code.
    Same for: startColumn
    Last edited by protonLeah; 01-29-2013 at 09:18 PM.
    Ben Van Johnson

+ 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