+ Reply to Thread
Results 1 to 10 of 10

Thread: hyperlink with filter function

  1. #1
    Registered User
    Join Date
    04-18-2004
    Posts
    10

    hyperlink with filter function

    Hi,

    I have more than 10 textboxes. I would like to filter the data on another worksheet base on which textbox the user clicks on. I have tried the Worksheet_FollowHyperlink event, but it does not work with the textbox hyperlink.

    Please help. Thx!

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & read 2007
    Posts
    15,979

    Re: hyperlink with filter function

    Hello deadfish,

    It would help to see your workbook. Can you post a copy?
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    04-18-2004
    Posts
    10

    Re: hyperlink with filter function

    Attached pls find the sample file.

    What I want to do is when user click on the "1" textbox, it then jumps to Sheet2, filter column A with the value "1". When user clicks on "14" textbox, the Sheet2 should be filtered by the value "14".

    Please advice. Thx.
    Attached Files Attached Files

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & read 2007
    Posts
    15,979

    Re: hyperlink with filter function

    Hello deadfish,

    Instead of a Hyperlink, I added a macro to each Text Box. The macro takes the entry and filters column "A" on "Sheet2" using that value. Here is the macro that has been added to the attached workbook.
    Sub FilterData()
    
      Dim TBname As String
      Dim Wks As Worksheet
      Dim X As String
      
        TBname = Application.Caller
        X = ActiveSheet.Shapes(TBname).TextFrame.Characters.Text
        
        Set Wks = Worksheets("Sheet2")
        Wks.Cells.AutoFilter Field:=1, Criteria1:=X
        
    End Sub
    Attached Files Attached Files
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  5. #5
    Registered User
    Join Date
    04-18-2004
    Posts
    10

    Re: hyperlink with filter function

    it works! thx!!

  6. #6
    Registered User
    Join Date
    01-20-2010
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: hyperlink with filter function

    Hi,

    A slightly different requirement - What I want to do is when a user clicks on the "text1", "text2", "text3" etc cells in column A on Sheet1, it hyperlinks to Sheet2, filters column A on sheet 2 to show all matching text rows.

    Both sheet1 and sheet2 cell columns are using a data validation list - Source: =text_names

    text1
    text2
    text3
    text4
    etc

    Fairly new to this so some basic assistance would be good.

    Thanks

  7. #7
    Registered User
    Join Date
    08-26-2010
    Location
    New York, NY
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: hyperlink with filter function

    Any way to do this for cells instead of text boxes?

  8. #8
    Registered User
    Join Date
    12-02-2010
    Location
    sofia
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: hyperlink with filter function

    Hi. I have a similar problem as well. I want to select a cell in a table (Sheet1) that contains a string, than via hyperlink want to go to Sheet2 where I have a second table and I want that table already filtered by that string.
    I will be very grateful if anyone can help.
    Thanks.

  9. #9
    Registered User
    Join Date
    07-04-2011
    Location
    leicester
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: hyperlink with filter function

    Can someone help - as above need to create a hyperlink which when selected goes to a specific sheet in my wookbook and filters to the correct details - can anyone show me a simple way this can be acheived?

  10. #10
    Registered User
    Join Date
    06-29-2007
    Posts
    15

    Re: hyperlink with filter function

    Hi,

    I would also like to know if there is a way where when you click a cell with a value in sheet 1, then it will automatically filter using the value you click in sheet 1 a column in Sheet 2?

    The column in Sheet 2 is of course will contain a value that is same on the cell that you click in Sheet 1, and this value is the one that will be filtered out.

    Thanks.

+ 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.2.0