Consulting

Results 1 to 4 of 4

Thread: Copy And Paste All Rows That Match A Specific Criteria

  1. #1
    VBAX Newbie
    Joined
    Dec 2018
    Location
    St. Louis
    Posts
    2
    Location

    Copy And Paste All Rows That Match A Specific Criteria

    Hello!

    At my work, we have an eLog that we make entries in every day, and I want use VBA to create a report that can pull up what happened during a particular day from it. The number of entries each day varies.

    Here is an example of the starting data:


    And say I want my report to tell me what happened on December 4th, that section would look like:


    Ideally I would love to take it one step further and only copy specific columns, so that the report would only have the most important information. Example:



    Note, all dates would be grouped together, so it have to seek entries that are out of order (if that helps).


    I’ve been searching around and googling how to make just the first step a reality, but I am currently stumped.

    Any and all help is greatly appreciated.

  2. #2
    VBAX Newbie
    Joined
    Dec 2018
    Location
    St. Louis
    Posts
    2
    Location
    Update: After considering limitations/simplicity, I realized that for the "second step" I could re-arrange the columns so that all pertinent information is in the first X columns / grouped together, so that only a single xy range is needed, and not removing a variety of columns.

  3. #3
    Why not just use autofilter to view the day that you want?

  4. #4
    Knowledge Base Approver VBAX Wizard p45cal's Avatar
    Joined
    Oct 2005
    Location
    Surrey UK
    Posts
    5,876
    An Advanced filter will alow you to filter the data and include only those columns you want, in any order.
    And/Or consider a Pivot Table to summarise and filter your data.
    p45cal
    Everyone: If I've helped and you can't be bothered to acknowledge it, I can't be bothered to look at further posts from you.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •