Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
These of course are two separate questions:
I'm writing a sub that is supposed to filter a sorted column of numbers, giving me a list of unique values on another worksheet. Then I want to count the number of occurrences of each value and put them in column B on that other worksheet, obtaining a table of frequencies. First, AdvancedFilter does the job almost right, since I get two repeated instances of the lowest value. Why would it do that? Where do I look for an error? I've checked the data and even set the format so that I would be sure it's all numbers, but it still gives the same result. Also, when I try do set the range on the second worksheet using Set rfilt = Worksheets("fx").Range(Cells(2, 1), Cells(counter, 1)) I get the 1004 run-time error: Application-defined or object-defined error. The same syntax works like a charm at the beginning of the sub, where I define the range holding the data. Why doesn't it work here? TIA, Nash |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Using AdvancedFilter on range of data | Excel Discussion (Misc queries) | |||
Using AdvancedFilter on range of data | Excel Programming | |||
Setting a criteria in an AdvancedFilter macro | Excel Programming | |||
Advancedfilter copy in place doesn't use criteria range correctly | Excel Programming | |||
setting range().hidden=True causes range error 1004 | Excel Programming |