+ Reply to Thread
Results 1 to 5 of 5

problem autofiltering text (numbers) including comma

Hybrid View

  1. #1
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: problem autofiltering text (numbers) including comma

    Sub kontfilter(filtervarde As String, kol As Integer)
       If filtervarde <> "" Then activesheet.columns(kol),1,filtervarde,xlor,replace(fitervarde,",",".")
    End sub

  2. #2
    Registered User
    Join Date
    07-14-2010
    Location
    sweden
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: problem autofiltering text (numbers) including comma

    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 code didnt work for me..
    Last edited by petca059; 07-14-2010 at 11:13 AM.

  3. #3
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: problem autofiltering text (numbers) including comma

    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

  4. #4
    Registered User
    Join Date
    11-12-2014
    Location
    Portugal
    MS-Off Ver
    2010
    Posts
    1

    Re: problem autofiltering text (numbers) including comma

    Try this:

    (...)
    Selection.AutoFilter Field:=kol, Criteria1:="=" & filtervarde, VisibleDropdown:=False
    (...)



    ~~~~> Criteria1:="=" & YourVariable

    Hope it works

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1