Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Advancedfilter copy in place doesn't use criteria range correctly

I'm going a little crazy. If I run an advancedfilter in the vba code of my
userform command button it builds the criteria range correctly (I can stop
at a breakpoint, look in excel and see the right criteria range), but when
the advancedfilter runs it returns the full list as if it ignored the
criteria range or it hides all rows in the input range (if I do it manually).


Please help, I can provide code if needed.

Thanks
Josh
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,979
Default Advancedfilter copy in place doesn't use criteria range correctly

Is the worksheet name included in the criteria reference? Perhaps it's
using a range on the active sheet when you run the code.

Josh wrote:
I'm going a little crazy. If I run an advancedfilter in the vba code of my
userform command button it builds the criteria range correctly (I can stop
at a breakpoint, look in excel and see the right criteria range), but when
the advancedfilter runs it returns the full list as if it ignored the
criteria range or it hides all rows in the input range (if I do it manually).


Please help, I can provide code if needed.

Thanks
Josh



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

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
RANGE EXCEL copy cell that meets criteria in a range confused Excel Worksheet Functions 3 March 27th 08 01:41 PM
Using AdvancedFilter on range of data Connie Excel Discussion (Misc queries) 2 October 19th 06 08:57 PM
Place X in cell if criteria met` jhicsupt Excel Discussion (Misc queries) 4 October 8th 05 06:14 AM
Copy a range from different worksheets and place in another worsheet unplugs[_43_] Excel Programming 0 July 5th 04 03:51 AM
AdvancedFilter Criteria question Neal Steiner Excel Programming 2 September 10th 03 06:53 PM


All times are GMT +1. The time now is 12:46 AM.

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"