+ Reply to Thread
Results 1 to 3 of 3

Merging multiple worksheets

  1. #1
    Forum Contributor dagindi's Avatar
    Join Date
    06-02-2008
    Location
    New York, NY
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    295

    Merging multiple worksheets

    While researching merging multiple worksheets I came across the following macro authored by Jerry Beaucaire:

    Please Login or Register  to view this content.

    The above code works fantastic if you are not range specific.

    I was then provided with the following tweak to select the ranges I need consolidated:

    Please Login or Register  to view this content.
    I am now getting a run time error '1004 "That command cannot be used on multiple selections" and the selection below is highlighted.

    Please Login or Register  to view this content.
    Any suggestions on the fix for this?

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Merging multiple worksheets

    Hi,

    Try just
    Please Login or Register  to view this content.
    instead.

    HTH
    Last edited by Richard Buttrey; 05-03-2010 at 06:36 PM.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Merging multiple worksheets

    We left in the .EntireRow, you're not copying the entire row any more.

    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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