Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default AdvancedFilter with VBA


Hello,

I cant seem to understand this one line of code:

myLocalSheet.Range(sheetName).AdvancedFilter Action:=xlFilterCopy,
criteriaRange:=defPage.Range("QTY_Filter"),
CopyToRange:=myLocalSheet.Range("A10000"), Unique:=False

Specifically, the highlighted part,

the thing is defPage.Range("QTY_Filter") is not one cell, its 3x2
matrix with stuff in it. and some of it is text !!!! some is empty tooo
!!!!! and the 2 two rows that do have #'s have =1

So, how does THAT work ??


--
newToExcel
------------------------------------------------------------------------
newToExcel's Profile: http://www.excelforum.com/member.php...o&userid=27192
View this thread: http://www.excelforum.com/showthread...hreadid=471593

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default AdvancedFilter with VBA


k. i have made a lil bit of progress since the last time i posted.

the criteria basically copies all the "non-zero" columns so for e.g.

product | qty |
------------------
prod A | - |
prod B | 1 |
prod C | 5 |

after that line of code runs, ONLY prod B and prod C will be copied
cause the qty column is =1.

I still dont understand how a 3x2 matrix can do that. i'm attaching a
snap shot of the range called "QTY_Filter".

Somebody help.....


+-------------------------------------------------------------------+
|Filename: qty_filter.JPG |
|Download: http://www.excelforum.com/attachment.php?postid=3858 |
+-------------------------------------------------------------------+

--
newToExcel
------------------------------------------------------------------------
newToExcel's Profile: http://www.excelforum.com/member.php...o&userid=27192
View this thread: http://www.excelforum.com/showthread...hreadid=471593

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default AdvancedFilter with VBA


no replies !!!! :(


--
newToExcel
------------------------------------------------------------------------
newToExcel's Profile: http://www.excelforum.com/member.php...o&userid=27192
View this thread: http://www.excelforum.com/showthread...hreadid=471593

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
Run Time error using AdvancedFilter D.Farns Excel Discussion (Misc queries) 1 June 16th 06 12:11 AM
AdvancedFilter in VB loopy[_6_] Excel Programming 1 June 22nd 05 03:24 PM
AdvancedFilter to Array Witek[_2_] Excel Programming 0 April 23rd 05 07:19 PM
Help with AdvancedFilter method Sumanth Suri Excel Programming 1 November 21st 03 06:02 AM
AdvancedFilter question Debra Dalgleish[_2_] Excel Programming 0 September 1st 03 12:14 AM


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