LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Autofilter criteria based on cell value

I have summary data of sales in the following format:


Salesperson Amount
John 5000
Jill 9000

etc.


I have a separate spreadsheet which gives me the detail for the above information.

Salesperson Client Month Discount Amount
John C1 May 20% 1000
Jill C2 June 15% 2000
Peter C3 June 10% 5000
Jill C4 June 5% 4000
John C1 June 10% 3000
Jill C2 July 5% 2000
etc



Is it possible to use VBA to autofilter the detailed data by Salesperson, using the names in the summary detail, print off the filtered detail, and then for it to loop to the next Salesperson in the summary data?

I know there are other ways of getting the info into the right format (pivot tables etc, but I am particularly interested in a macro which could do this as there are various other uses I could have for this sort of macro)

Thanks in advance.

Craig


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
AutoFilter based on cell value Tony S.[_2_] Excel Discussion (Misc queries) 2 February 16th 09 09:58 PM
How do I get a cell value based on different criteria? B G Excel Discussion (Misc queries) 1 July 13th 06 05:06 PM
Locate a cell, based on a criteria, then use the 'Cell' command... cdavidson Excel Discussion (Misc queries) 1 November 17th 05 06:30 PM
How do you hide a row based upon cell criteria? Jim Ashley Excel Programming 1 June 21st 04 02:08 AM
I want Cell content as Autofilter criteria CLR Excel Programming 2 December 15th 03 12:38 AM


All times are GMT +1. The time now is 10:54 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"