It’s a protected file, and I don’t have access to the macro, etc. I can still enter values inside, and click on the column to manually remove the filters.
With the execution of the macro, I am required to be an administrator of the file, right?
Hi
we can use EXCEL APPLICATION SCOPE AND a READ RANGE ACTIVITY where if the option use filter is disbaled it wont take the filter even if it is applied
and then to delete cell value we do that with normal assign activity like this
this will delete the particular cell value Yourdatatable.RowS(rowindex)(“columnname”) = string.Empty
where rowindex usually starts from 0 for the first row
this will enter new value if we want Yourdatatable.RowS(rowindex)(“columnname”) = “new value”
kindly try this and let know for any queries or clarification
Cheers @Zeynk
Thanks , I’ll try.
But why doesn’t a Delete range technically work? Knowing that we’re giving the range, but doesn’t take effect if there’s a filter?
As it is in protected mode.
May be I m not we need to try once with that file
But fetching the data from datatable format would be robust always
Cheers @Zeynk
I’ll try the method.
But I think that in terms of optimization, I’m still going to waste a lot of time modifying one by one.
That’s 500 rows, about to be emptied of 15 columns.
I used the technique (although it is relatively long to empty each cell). Once the values are replaced after Yourdatatable.RowS(rowindex)(“columnname”) = string.Empty, I have to Write Cell the datatable in the Excel file?
If so, it unfortunately does not work.
Fine this expression would have changed in the datatable and if this is written back to excel with write range activity then it would be updated In excel as well
Ctrl + Shift + L to turn on/off filtering (if filtering is off, you can go to a stray cell and try to turn it on and it will error with a message that “This can’t be applied to the specified range. Select a single cell in a range and try again.”)
Can you create a new file instead of editing the old one? Then you can copy the records out of the original file into the new file that you have full control over.
So if you have to use the same spreadsheet, can you just click on the Enable Content since it is protected and then use the shortcuts on each worksheet?