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?