How to extract data to another worksheet using VBA?

We have Company Report with Employee Name, State, Emp Id, Manager & Process.
 
img38
 
The above data contains more than 250 rows. Now, we want user to select Name, Manager& Process from dropdown lists.

The information should be updated in another sheet with a single click
 
img39
 
To get the output on the above shown multiple criteria, we require VBA code.We need to follow the below mentioned steps to launch VB editor

  • Click on Developer tab
  • From Code group, select Visual Basic or simply press ALT +F11 to launch VBA screen

img40

  • Click on Insert, and then on Module

img41

This will create a new module.

Enter the following code in the Module;
 
img42
 
img43
 
We can assign the macro to GO button. After clicking the GO button, we will get the following result
 
img44
 
The above VBA code will automatically update the result as we change Employee Name, Manager or Process.

In this way, using Advance Filter through VBA,we can extract data on multiple conditions.
 
ADVANCE FILTER INDEX:

Introduction to Advance Filter
1. Using “And”, “Or” and Multiple Criteria
2. How to Filter Unique Records?
3. How to Use Wildcards?
4. Extract records after specific date criteria
5. Extract items between 2 Date’s criteria
6. How to extract data with specific text?
7. How to extract data to another worksheet using VBA?
 
Download E-Book
 
 

Users are saying about us...

  1. Great tip. From now on I will be using Advanced Filter wherever possible. Retrieving data for further processing is now much easier and less time consuming.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Terms and Conditions of use

The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.

Visit Us On TwitterVisit Us On FacebookVisit Us On Google PlusVisit Us On Youtube