Hi,
I need to pick up the criteria of an autofilter and pass this to a variable. I also need to get the column being filtered.
The point is that I have a spreadsheet that allows the user to filter for the items they're interested in and subtotal(9,[Range])'s the values based on the filter. I want to print the selection summary from a command button and paste in the selection criteria as a title.
I can't just use a cell reference as they may be filtering on any one of four columns:
Sample data:
Sale Date Seller Contract Position
20-Dec-02 BBU BBU01 BBU20084
20-Dec-02 BBU BBU01 BBU20085
20-Dec-02 BBU BBU01 BBU20086
20-Dec-02 BCU BCU01 BCU20080
20-Dec-02 BCU BCU01 BCU20081
20-Dec-02 BCU BCU01 BCU20090
20-Dec-02 BCU BCU01 BCU20091
20-Dec-02 BCU BCU01 BCU20092
20-Dec-02 MBU MBU04 MBU20094
20-Dec-02 MBU MBU04 MBU20095
So, my final report header would look something like:
Deal Report: [Column Title] = [Filter Criteria]
I'm running XL2002 on an XP machine.
Thanks, Iain
I need to pick up the criteria of an autofilter and pass this to a variable. I also need to get the column being filtered.
The point is that I have a spreadsheet that allows the user to filter for the items they're interested in and subtotal(9,[Range])'s the values based on the filter. I want to print the selection summary from a command button and paste in the selection criteria as a title.
I can't just use a cell reference as they may be filtering on any one of four columns:
Sample data:
Sale Date Seller Contract Position
20-Dec-02 BBU BBU01 BBU20084
20-Dec-02 BBU BBU01 BBU20085
20-Dec-02 BBU BBU01 BBU20086
20-Dec-02 BCU BCU01 BCU20080
20-Dec-02 BCU BCU01 BCU20081
20-Dec-02 BCU BCU01 BCU20090
20-Dec-02 BCU BCU01 BCU20091
20-Dec-02 BCU BCU01 BCU20092
20-Dec-02 MBU MBU04 MBU20094
20-Dec-02 MBU MBU04 MBU20095
So, my final report header would look something like:
Deal Report: [Column Title] = [Filter Criteria]
I'm running XL2002 on an XP machine.
Thanks, Iain