![]()
Sub kontfilter(filtervarde As String, kol As Integer) If filtervarde <> "" Then activesheet.columns(kol),1,filtervarde,xlor,replace(fitervarde,",",".") End sub
![]()
Sub kontfilter(filtervarde As String, kol As Integer) If filtervarde <> "" Then activesheet.columns(kol),1,filtervarde,xlor,replace(fitervarde,",",".") End sub
Im sorry, can you please explain that code?
the replace"thing" solved it when i used it. Thanks! Would still like an explaination of the other things in your codedidnt work for me..
Last edited by petca059; 07-14-2010 at 11:13 AM.
It's meant to be the replacement and improvement of your sub 'kontfilter'.
But it has an omission
![]()
Sub kontfilter(filtervarde As String, kol As Integer) If filtervarde <> "" Then activesheet.columns(kol).autofilter 1,filtervarde,xlor,replace(fitervarde,",",".") End sub
Try this:
(...)
Selection.AutoFilter Field:=kol, Criteria1:="=" & filtervarde, VisibleDropdown:=False
(...)
~~~~> Criteria1:="=" & YourVariable
Hope it works
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks