Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Macro/VBA for filtering unique entries and pasting in another sheet

Hi,
Been scratching my head on this one since morning so would be a
treat if anyone drops a hint! I have a sheet with row headers say
(Task, Responsible, Due Date). I want to create a macro that:
1. Filters the list as per today's date
2. Select each person's tasks that show up
3. Paste the tasks in a separate sheet per person

It works for a small list of 5 people, BUT
The problem is that when you have a long list with around 50 names,
then its tough to record a macro for each person individually. Is
there a way for it to intelligently see how many people's names come
up as per step 1 above and then select each person's tasks to paste in
another sheet?

-wally (with a scratch mark on head of course)
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default Macro/VBA for filtering unique entries and pasting in another sheet


As always, post YOUR coding efforts for comments/suggestions. You could
probably use a
for each person in people (where people is a range with the list)
do stuff (criteria1 change for each person)
copy to person sheet
next person

But, do you really need to do this when you can filter or use a pivot table.

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

wrote in message
...
Hi,
Been scratching my head on this one since morning so would be a
treat if anyone drops a hint! I have a sheet with row headers say
(Task, Responsible, Due Date). I want to create a macro that:
1. Filters the list as per today's date
2. Select each person's tasks that show up
3. Paste the tasks in a separate sheet per person

It works for a small list of 5 people, BUT
The problem is that when you have a long list with around 50 names,
then its tough to record a macro for each person individually. Is
there a way for it to intelligently see how many people's names come
up as per step 1 above and then select each person's tasks to paste in
another sheet?

-wally (with a scratch mark on head of course)


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
Filtering Unique Customers vijaydsk1970 Excel Worksheet Functions 1 August 22nd 07 03:08 PM
Macro for copy pasting details from main sheet hipul Excel Discussion (Misc queries) 1 June 26th 07 08:59 AM
filtering unique data kuansheng Excel Worksheet Functions 5 May 4th 06 01:50 AM
How can I extend the filtering limits of 1000 unique entries ianshoey Excel Discussion (Misc queries) 1 March 16th 06 01:15 AM
Counting Unique text entries in a sheet with a condition Mike Excel Worksheet Functions 5 October 4th 05 11:56 AM


All times are GMT +1. The time now is 03:34 PM.

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"