Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 331
Default VB: moving data range

I have a list of tasks with 2 columns for peoples names. I want to assign
primary and secondary responsibilites on the list. On another sheet I want
to choose one of those names and have it find all the task to print out. I
have a macro that uses advanced filter to get the primary names. I cannot
figure out how to find the last row in the list, then move the range down to
put an advanced filter for the secondary tasks. This is what I have for a
maro now and it sorts on the task order from the first list.

Sheets("Task List").Range("A1:D161").AdvancedFilter Action:=xlFilterCopy, _
CriteriaRange:=Range("B1:b2"), CopyToRange:=Range("A4:d164"),
Unique:= _
False
Range("A5:D164").Select
Selection.Sort Key1:=Range("D5"), Order1:=xlAscending, Header:=xlNo, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal

Thanks in advance for your help
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
Moving range? wx4usa Excel Discussion (Misc queries) 7 December 26th 09 04:28 PM
Moving Data between sheets in the same workbook and moving data between Workbooks. Alison Brown Excel Worksheet Functions 0 February 10th 09 01:03 AM
sum with moving range snax500 Excel Discussion (Misc queries) 3 July 10th 06 05:56 AM
Moving Data Range in Chart Peter Charts and Charting in Excel 1 June 26th 06 11:16 PM
Moving Data Within a Range Wouter HM Excel Programming 2 February 16th 04 08:19 AM


All times are GMT +1. The time now is 11:24 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"