+ Reply to Thread
Results 1 to 8 of 8

Combine sheets

  1. #1
    Forum Contributor
    Join Date
    11-06-2012
    Posts
    139

    Combine sheets

    Hello,

    I want to combine the first two sheets.

    This sheets contains combination of arrangements (for simplicity i called them type 1 to type 45).

    The first sheets is the sale in week 03-04-99 the second one a week later (10-04-99).

    I want the combine these two sheets in the last sheet. With the combinations type 1 and all the combinations with type 1 at the top, organized by week.

    And under this sheet type 2, with all sold combinations to type 2.

    To reorganize this is a lot of work, is there a vba code/tool to do this?

    See attachments.

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,947

    Re: Combine sheets

    Put this into a standard codemodule and run it... you may need to mess around with the date values - VBA is US-centric with dates, and I have no way to test against your date settings.

    Please Login or Register  to view this content.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Forum Contributor
    Join Date
    11-06-2012
    Posts
    139

    Re: Combine sheets

    Hmm thnx.

    But it started to copy new sheets with the name type 1 to type 45.

    And it makes the table how i want to see it. But it didn't copy the numbers out of the tables in the dates.

    The name of the the worksheets is the date, but also (1) or (2) or (3) and going up by on before the date.

  4. #4
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,947

    Re: Combine sheets

    Quote Originally Posted by Mverm0 View Post
    Hmm thnx.
    The name of the the worksheets is the date, but also (1) or (2) or (3) and going up by on before the date.
    It was not clear what you wanted, and there were only two sheets, both of whose names were valid dates - no (1) (2) or (3). The macro worked on the example workbook, copying the numbers out of the tables. So....... what do you actually have, if the sample is not really what you have?

  5. #5
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,947

    Re: Combine sheets

    Quote Originally Posted by Mverm0 View Post
    Hmm thnx.
    The name of the the worksheets is the date, but also (1) or (2) or (3) and going up by on before the date.
    It was not clear what you wanted - what did "And under this sheet type 2" actually mean.. I thought a sheet under the sheet.... And there were only two sheets, both of whose names were valid dates - no (1) (2) or (3). The macro worked on the example workbook, copying the numbers out of the tables. So....... what do you actually have, if the sample is not really what you have?

  6. #6
    Forum Contributor
    Join Date
    11-06-2012
    Posts
    139

    Re: Combine sheets

    I thought you were writing a general framework, in which I could enter the values.

  7. #7
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,947

    Re: Combine sheets

    That is completely different from your original post. And how does Type 1 have values against Type 1, when in the (X) sheets, the value is /? And where are you getting the dates from? Are you always combining just two sheets?

  8. #8
    Registered User
    Join Date
    10-04-2014
    Location
    Netherlands
    MS-Off Ver
    Excel2010
    Posts
    6

    Re: Combine sheets

    It also works for me

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Combine sheets from different sheets into one sheet.
    By visha_1984 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-21-2013, 02:04 AM
  2. Combine two sheets
    By vonborge in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-17-2013, 10:24 PM
  3. [SOLVED] combine sheets
    By ASPERO in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 08-22-2012, 08:22 PM
  4. combine two sheets into one
    By josef01 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-21-2011, 02:43 AM
  5. [SOLVED] HELP!!! combine 4 different sheets ???
    By TonyKA in forum Excel General
    Replies: 0
    Last Post: 05-13-2005, 01:06 PM

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