11-06-24 10:52 AM
11-06-24 08:18 PM
Sure follow this steps :
1 : Open Ms Excel VBO and add a new page Apply Filter like this
2. Add a code stage, name it apply filter, and provide this input see below:
in the code part put this :
Finally it will look like this :
Publish your action
and go to studio now
In my case i have this excel file
I will remove from column Education this 2 values [Doctoral and Lower secondary]
Make your process look ike this :
Provide this parameters for the action Apply Filter like this :
if you want to remove Completed and Canceled you provide this CANCELED|COMPLETED for Criteria String
Now save and run your code it will work ;)
Please note that this action could take time because we are making a loop if you want to make the bot faster you can use oledb but you need the provider ;)
Regards
11-06-24 02:55 PM
You mean turn the autofilter off ?
11-06-24 03:17 PM
No, I want to uncheck the few values from the particular column. For example I want to uncheck "Completed" and "Cancelled" please find the screenshot..
11-06-24 03:34 PM - edited 11-06-24 03:35 PM
Why you dont get the worksheet as collection and then you apply filter inside the collection ?
You can do what you want by using a CUSTOM CODE STAGE on Excel VBO but you have native action that can do what you want.
If you want a CUSTOM code i can help you.
But if you prefer the native action in Blue Prism you can do this step :
Drag and drop MS Excel VBO :
- Create instance
- Open Workbook
- Get Worksheet as collection
- Close Workbook
- Close instance
Then drag and drop an action and select
Collection Manipulation and then Filter Collection.
Put in your filter
"[ColumnName] Not in ('CANCELED','COMPLETED')"
11-06-24 05:27 PM
Thank you Mohamad,
I can't do that one. Because I have to apply a multiple filters to the multiple columns at the same time, I have a vba custom code to select multiple filter values and at the same time I want to exclude few values from multiple columns. So, that It will reflect the values in the other Sheet..
please help me with your custom code for excluding a values in a column..
11-06-24 08:18 PM
Sure follow this steps :
1 : Open Ms Excel VBO and add a new page Apply Filter like this
2. Add a code stage, name it apply filter, and provide this input see below:
in the code part put this :
Finally it will look like this :
Publish your action
and go to studio now
In my case i have this excel file
I will remove from column Education this 2 values [Doctoral and Lower secondary]
Make your process look ike this :
Provide this parameters for the action Apply Filter like this :
if you want to remove Completed and Canceled you provide this CANCELED|COMPLETED for Criteria String
Now save and run your code it will work ;)
Please note that this action could take time because we are making a loop if you want to make the bot faster you can use oledb but you need the provider ;)
Regards
12-06-24 06:31 AM
Thank you so much Mohamad, Your code is working as expected.. :)