+ Reply to Thread
Results 1 to 3 of 3

Copy row of data from severla worksheets to results sheet

  1. #1
    Registered User
    Join Date
    09-28-2010
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    11

    Copy row of data from severla worksheets to results sheet

    Hi all

    Never used macros or VBA before. have searched long and hard but cant get this right.

    I want to copy a row of data dependant on the value in column W. I have 7 sheets that I want to copy from. All the data will be copied to one sheet called 'pilot'.

    The 7 sheets are Named: 'Engalnd & Wales', 'Scotland', 'North', 'south', 'England and Wales (remote', 'Scotland (Remote)', 'other'.

    I want the entire row to copy to the 'pilot' sheet if the value in column W is 'P'. Currently column W either has a value of P or is blank. I can change the blanks to have a value is necessary (e.g. B).

    the data needs to be copied to the next available row in sheet 'pilot'. all sheets have headings in row 1.

    I can't upload the sheet as data is sensitive.

    any help appreciated.

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

    Re: Copy row of data from several worksheets to results sheet

    I would use a macro for this. The macro would:

    1) Cycle through the specified sheets one at a time
    2) Apply a Data > Filter > AutoFilter to the data filtering column W for the value "P"
    3) All the remaining visible rows would be copied to the bottom of the "Pilot" sheet
    4) Autofilter would be removed
    _________________
    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!)

  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: Copy row of data from severla worksheets to results sheet

    Something along the lines of:

    Please Login or Register  to view this content.

+ 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