#1
|
|||
|
|||
how to filter using hyperlick?
I have two customer A and B and i filter there statics using fliter(inbuilt excel function) but i want to filter by just one click on some kind of hyperlink instead of using filter function and select one of them by checking the box
in other words i want to make a link or function to select all in fliter and one link to select customer A and one for customer B actully i have too many customers and it is annoying to find and select one of them |
#2
|
|||
|
|||
There are a few ways this can be done but it is difficult to give one of the options without seeing a sample sheet. If you are using the Auto-Filter currently can you just type the customer name in the search box that comes up when you click on the filter arrow and then select your customer? If that wont work then I can write something where you click on a button and then inputbox will come up asking for the name. You type in the name and then the filter will give you the results it finds. This however does not always work because you may have more than 1 customer named John etc. Posting a sample sheet with the desired result will allow me to get a better idea on what solution to provide.
Thanks |
#3
|
|||
|
|||
Quote:
sample file attached I tried to type the name in search box (assuming that is the drop box cell) it gives me option to select the name but when i press enter it does not filter the data Actually it does change the cell text but does not filter the data please make it clear if i am doing anything wrong. |
#4
|
|||
|
|||
I dont think you are doing anything wrong. I think the 2007 version does not have the type of autofilter feature that I previously described. I have attached a working version of the idea. This worksheet will only work to filter the first column. If you look at the code by pressing ALT + F11 when the workbook is open you can see that the code is very very basic. You dont need to worry too much about the if statements those are just in there so the program does not error out.
You will have to excuse my older version of office I use a lot of different options and this computer happens to have 2003. Let me know how it works out or if you have any questions. Thanks |
#5
|
|||
|
|||
that worked prefect and exact what i want... Thanks
although i could not understand the formula you used , but since i dont need anything except this formula i even dont much need to understand it. I would try to add this in my original workbook you really deserve ++ reputation Thanks again |
#6
|
|||
|
|||
Thanks for the kind words. The formula used was Visual Basic code and it's a whole other bear it can use the regular worksheet functions but basically makes it possible to do anything with Excel ( I havent found something Excel cant do it yet)
Thanks please feel free to mark as solved. |
#7
|
|||
|
|||
Quote:
if you please guide me how do i do that i will be highly thankful to you also tell me why it is asking to save (when going to close the file) even when no changes has been made? Thanks again |
#8
|
|||
|
|||
Hi,
The button is the "Filter" button in the "CR" sheet that excelled software hase in the file he posted. Are you wanting to move all of the code and the button to your original workbook? |
#9
|
|||
|
|||
i mean i want to do the same in my (diffrent) workbook
|
#10
|
|||
|
|||
HI,
First you will copy the code that was created to the workbook that you want to use. Once you do that you can then do the following. With the workbook you want to use the code in look for the "Developer" tab. Click on it and this will display a drop down. You will then look for "Insert" click it and a dropdown will appear you will see options. Click the "Form Control" button. This will be the top left button in the drop down. When you select it you will then click the location in the worksheet you want the button be placed. A pop up will appear and ask you what code you want to use. You will click the desired code and then press "OK". This will see the button you just created to the code that needs to run. If all else fails you can send the workbook to me. Last edited by charlesdh; 03-30-2015 at 10:41 AM. Reason: missed some info added it |
#11
|
|||
|
|||
|
#12
|
|||
|
|||
Quote:
I have attached the file please dont mess up anything (as i would use the same file in future) i want to filter only one tab CR (tab name) and only column A in my file Thanks in advance ( I will be here tomorrow) |
#13
|
|||
|
|||
Hi,
Check to see if ok. |
#14
|
|||
|
|||
Hi,
Your original workbook was saves as a "Excel Workbook". I do not think you can have code in that format. When you added the code you should have saved it a a "Macro enabled work book". |
#15
|
|||
|
|||
charles is right you need to have the workbook saved as Macro Enabled. When you select the file type as you are saving the workbook this is usually the 2nd option in the list. The main workbook format is in the top of the list.
Once you have the shape in your workbook, right click on it and then click on "Assign Macro" when you do it will allow you to select the macro to use. Let us know what you come up with. Thanks |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
filter sheet | s_samira_21 | Excel | 1 | 01-10-2015 08:27 AM |
Countif with filter | epnhakon | Excel | 3 | 08-29-2014 09:46 AM |
Help Date filter | Herve86 | Outlook | 0 | 05-28-2012 04:43 AM |
Apply filter with VBA | bobsawyer7 | Outlook | 0 | 03-12-2012 04:02 AM |
filter | kwlickt | Excel | 1 | 03-28-2011 11:15 AM |