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!
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 Starbelow the post.
3. Please mark your post [SOLVED] if it has been answered satisfactorily.
Old Scottish Proverb...
Luathaid gu deanamh maille! (Rushing causes delays!)
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.
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
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 Starbelow the post.
3. Please mark your post [SOLVED] if it has been answered satisfactorily.
Old Scottish Proverb...
Luathaid gu deanamh maille! (Rushing causes delays!)
it works! thx!!
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
Any way to do this for cells instead of text boxes?
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.
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?
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.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks