I have an advanced filter that is used to generate a list of only those companies that have data against them - it then uses this list in a drop down to appy another filter and only show the selected ones.
[vba] 'Create the list
Range("FullSheetCompany").AdvancedFilter _
Action:=xlFilterCopy, _
CriteriaRange:=Range("FilterCompany"), _
CopyToRange:=Range("Z3"), _
Unique:=True[/vba]
It works but I was trying to tidy other stuff and make things pretty; so decided that the scroll bars to the right went on for miles with a tiney bar that jumped 1000 records with a single pixel drag (exaggerating) so I hid rows from 3000 to the end. Now the above bit of code takes 6 mins to actually do anything!
I un-hid the rows and we are back to a second or two. Neither of the ranges reference a hidden rows, row 3 is above the main list on the same sheet, ...
please tell me I don't have to put in my own scrollbar component and code it
(BTW: MSExcell 2003)