Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 43
Default Macro_creating sheets from AutoFilter list


Im trying to create a macro that will add number of new sheets depends the
number of items on the list of column D. name it C1, C2, C3, C4, C5...

AutoFilter the list, choose the first item, copy the content of active
sheet and then paste on the C1. Continue AutoFilter, choose the second item,
copy the content of active sheet and then paste on the C2. Do the same for
the rest of items on the list.

I have had a macro that add sheets, name the sheets, copy the contents of
sheet to the new sheet after AutoFilter the list. The list is limited to 4
specific items. But sometimes the list changed, it has more than 5 or 6
different items.

Any suggestion?

Thanks
--
Aline
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Macro_creating sheets from AutoFilter list

Take a look at these options:

Ron de Bruin's EasyFilter addin:
http://www.rondebruin.nl/easyfilter.htm

Code from Debra Dalgleish's site:
http://www.contextures.com/excelfiles.html

Create New Sheets from Filtered List -- uses an Advanced Filter to create
separate sheet of orders for each sales rep visible in a filtered list; macro
automates the filter. AdvFilterRepFiltered.xls 35 kb

Update Sheets from Master -- uses an Advanced Filter to send data from
Master sheet to individual worksheets -- replaces old data with current.
AdvFilterCity.xls 55 kb

If you're new to macros:

Debra Dalgleish has some notes how to implement macros he
http://www.contextures.com/xlvba01.html

David McRitchie has an intro to macros:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

Ron de Bruin's intro to macros:
http://www.rondebruin.nl/code.htm

(General, Regular and Standard modules all describe the same thing.)

Aline wrote:

Im trying to create a macro that will add number of new sheets depends the
number of items on the list of column D. name it C1, C2, C3, C4, C5...

AutoFilter the list, choose the first item, copy the content of active
sheet and then paste on the C1. Continue AutoFilter, choose the second item,
copy the content of active sheet and then paste on the C2. Do the same for
the rest of items on the list.

I have had a macro that add sheets, name the sheets, copy the contents of
sheet to the new sheet after AutoFilter the list. The list is limited to 4
specific items. But sometimes the list changed, it has more than 5 or 6
different items.

Any suggestion?

Thanks
--
Aline


--

Dave Peterson
Reply
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
Using Autofilter on Protected sheets Yogin Excel Discussion (Misc queries) 3 August 3rd 08 05:30 PM
List for AutoFilter and list for Subtotals have different meanings? Epinn New Users to Excel 2 August 18th 06 09:02 PM
Autofilter in List R K Boles Excel Discussion (Misc queries) 3 January 21st 06 02:23 PM
Autofilter Lists across Multiple Sheets, Maintain Correct Referenc EDSTAFF Excel Worksheet Functions 0 November 14th 05 03:27 PM
List vs. AutoFilter Suzan Excel Discussion (Misc queries) 0 September 20th 05 09:42 PM


All times are GMT +1. The time now is 02:23 PM.

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

About Us

"It's about Microsoft Excel"