+ Reply to Thread
Results 1 to 3 of 3

Copy Data From Multiple Workbooks to One Workbook

  1. #1
    Registered User
    Join Date
    01-11-2011
    Location
    Michigan
    MS-Off Ver
    Excel 2007
    Posts
    38

    Copy Data From Multiple Workbooks to One Workbook

    I am trying to copy data from multiple other workbooks (in this example, just one wother workbook- "Machine Charting Entry.xlsm" ) into one main workbook ("OEE Charting.xlsm"). All of the data in the 'other' workbooks is layed out the same way as in OEE Charting, but has varying lengths of data. The problem that I am having is from an error when I try to paste the code into OEE Charting, there is an error "Object doesn't support this property or method" and I cannot find a way to fix it.

    Please Login or Register  to view this content.
    I have also tried using .range(cells(2,1),cells(LastRowMCE,27)).paste, but it still returns an error.
    Am I referencing the main workbook incorrectly?
    Thanks in advance

  2. #2
    Valued Forum Contributor StevenM's Avatar
    Join Date
    03-23-2008
    Location
    New Lenox, IL USA
    MS-Off Ver
    2007
    Posts
    910

    Re: Copy Data From Multiple Workbooks to One Workbook

    This is not making any sense:

    Please Login or Register  to view this content.
    With an "With ... End With" one expects a phrase which begins with a dot. For example, if you are referring to cell A2 in the worksheet "Enter Data" then:

    Please Login or Register  to view this content.
    Range with a dot before it (and nothing else before the dot) goes with the With statement.

    Also, try PasteSpecial instead of Paste.

    With:

    Please Login or Register  to view this content.
    You should then have a statement like:

    Please Login or Register  to view this content.
    As it is:
    Please Login or Register  to view this content.
    doesn't make any sense, because you need a worksheet (or sheet) statement between a workbook and a Range.

  3. #3
    Registered User
    Join Date
    01-11-2011
    Location
    Michigan
    MS-Off Ver
    Excel 2007
    Posts
    38

    Re: Copy Data From Multiple Workbooks to One Workbook

    I finally got it to work, thanks 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)

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