+ Reply to Thread
Results 1 to 4 of 4

filter and copy

  1. #1
    Forum Contributor
    Join Date
    08-10-2006
    Posts
    723

    filter and copy

    hi,

    could you please look at the attached file and help me with the following

    If i filter on typeA i want those results to go into another worksheet
    if i filter on type b i want that information to go into the same cells on the other worksheet as typea went into

    thanks for your help
    steve
    Attached Files Attached Files

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Hi,

    Here's some recorded VBA code that might work for you.
    You need to add headers to data in Filter from Tab first.

    Filter either Type A or Type B then press Alt + F8 then run the macro called filter. If you used the code a lot then add a macro button (see link)

    The data pastes into Cell A12 down on the filter 2 sheet

    http://articles.techrepublic.com.com...9-1060039.html


    Please Login or Register  to view this content.
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Forum Contributor
    Join Date
    08-10-2006
    Posts
    723
    hi,

    thanks works great

    steve

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Hi Steve,

    Glad I could help.

    If one Type has a longer list than the other you might need to record some code to clear contents in Filter 2 from A12 down before you copy the data

    VBA Noob

+ 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