Scenario: Each division has its own worksheet showing a table of sales
for Product code-by-Region (Product codes L-R along columns, regions
top-down across rows with the # of units sold in any given cell).
There's a master worksheet which lists the various products with
columns for "division name", "product code" and "region". There are
other values listed as well such as Product ID, product code, sale$,
profit$, salesperson$, date product was introduced etc.
E.g.
1001 BLEN Div1 1/1/2002 Eastern-U.S. 2002-1 $50.00 $20.00 $30.00 Jack
1002 WMAC Div1 1/1/2002 Eastern-U.S. 2002-1 $400.00 $100.00 $300.00 Mike
1001 BLEN Div3 1/1/2002 Eastern-U.S. 2002-1 $50.00 $20.00 $300.00 Mike
1003 DRYR Div2 1/1/2002 Eastern-U.S. 2002-1 $500.00 $100.00 $300.00 Mike
1003 DRYR Div1 1/1/2002 Eastern-U.S. 2002-1 $500.00 $100.00 $300.00 Mike
What I would like to do is that when the user clicks in a given cell
on the main table in any division's worksheet (e.g. Div1), the macro
captures the three variables:
(a) Division name:
(b) Product Code
(c) Region
and then either:
1. lists all the entries in the master worksheet which satisfy these
three criteria and paste them into another worksheet, or
2. Use these three criteria to auto-filter the master worksheet.
Bookmarks