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: 47
Default Selecting Cells to set up Advanced Filter

I am trying to select a range through a macro that starts
with an offset three cells above a range named start. Line
1 does this correct. But I then want to continue selecting
a cell that is 4 cells down without losing the first
location I selected. But line 2 makes me lose the first
cell I selected.

Then, after I've done that, I need to select the end down
and to the end of the right range as lines 3 and four
below do.

Once I've Highlighted all that, I want the macro to give
this area a range name called "UploadRange", but I don't
want it referring to an absolute range like it does here
in line 6 of this sub.

Once I've completed that then lines 7, 8, and 9 here
should be able to execute the advanced filter based on the
constant range called "criti". I think that lines 7, 8,
and 9 here are ok, but let me know if they dont' look
right.

Then, when I get through with the advanced filter, I had
it selecting a cell just to get rid of the highlight that
would be left from the advanced filter selections.


Sub HideZeros()
Range("Start").Offset(-3, 0).Select
Range("Start").Offset(1, 0).Select
Range(Selection, Selection.End(xlDown)).Select
Range(Selection, Selection.End(xlToRight)).Select
ActiveWorkbook.Names.Add Name:="UploadRange",
RefersToR1C1:="=MJE!R10C1:R53C48"
Range("UploadRange").AdvancedFilter
Action:=xlFilterInPlace, CriteriaRange:= _
Range("Criti"), Unique:=False
Range("Q6").Select
End Sub
 
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
Advanced Filter when using Date Range Cells Jim Excel Discussion (Misc queries) 3 January 25th 09 08:53 PM
Advanced Filter used with merged cells? davisk Excel Worksheet Functions 3 January 8th 09 04:46 AM
advanced filter looking for blank cells pete the greek Excel Discussion (Misc queries) 1 April 20th 07 02:05 PM
Advanced Filter for Empty Cells Kirk P. Excel Discussion (Misc queries) 5 February 27th 07 10:03 PM
How do I use advanced filter to filter for blank cells? Monique Excel Discussion (Misc queries) 2 March 21st 06 06:43 PM


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