+ Reply to Thread
Results 1 to 5 of 5

Coping Data from multi sheets to a single sheet via criteria

  1. #1
    Registered User
    Join Date
    10-27-2007
    Posts
    10

    Coping Data from multi sheets to a single sheet via criteria

    Hi All

    I wonder if anyone can help me. I am using excel 2008 and I have a multi sheet workbook. I am looking at being able to copy data from all of the work sheets in the work book to a new worksheet in the work book. All the work sheets have the same headings. example
    Work sheet 1 is called A, worksheet 2 is called B and worksheet 3 is called C and worksheet 4 is called D. In each worksheet the columns headings are Maker,Type,Qty,Date. I am wanting to copy all the row data from sheets A-C into sheet D depending on a criteria eg where column Date in sheets A-C are like *May09. I have been able to perform this function from 1 sheet eg copy from A to D using advanced filter..List range = 'A'!$A$1:$D$2000,Criteria range = $M$1:$M$2,Copy to = $A$1:$D$1. I tried changing the List range to be = 'A:C'!$A$1:$J$2000 hoping this would cover it but I get back an error. This is something I want to run often so if there is a better solution then please advise.

    Thanks in advance

    Mike

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Coping Data from multi sheets to a single sheet via criteria

    Hi,

    Try this:

    Please Login or Register  to view this content.
    Hope it helps,

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Registered User
    Join Date
    10-27-2007
    Posts
    10

    Re: Coping Data from multi sheets to a single sheet via criteria

    Hi Dom

    Tried that and worked a treat :-) thanks. I am now looking at putting the Criteria1:="=*MAY09" into sheet D as a cell so that you can type anything into the cell then run the macro instead of having to edit the macro each time before running. Any advise would be appriciated.

    Thanks

    Mike

  4. #4
    Registered User
    Join Date
    10-27-2007
    Posts
    10

    Re: Coping Data from multi sheets to a single sheet via criteria

    Hi Dom

    Found an issue if the criteria doesnt exisit in one of the sheets, the ap fails and adds filter headers to the top of the sheet if failed on :-(

    Thanks

    Mike

  5. #5
    Registered User
    Join Date
    10-27-2007
    Posts
    10

    Re: Coping Data from multi sheets to a single sheet via criteria

    Can anyone still assist with this issue have I have still not found a way round my problem?
    Thanks
    Mike

+ 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