I have a simple line of code that I'd like to run while a worksheet is password protected. Is it possible to run this without removing the password protections? There will not be a password since that level of restriction isn't required.
Allowed Protections required:
[ul]
[li]Select Unlocked cells[/li]
[li]Format Cells[/li]
[li]Insert Rows[/li]
[li]Delete Rows[/li]
[li]Sort[/li]
[li]User Autofilter[/li]
[li]Use PivotTables and PivotCharts[/li]
[li]Edit Objects[/li]
[/ul]
Thanks for the help
Code:
ThisWorkbook.Sheets("Pick List").ListObjects("pick_table").DataBodyRange.Delete
Allowed Protections required:
[ul]
[li]Select Unlocked cells[/li]
[li]Format Cells[/li]
[li]Insert Rows[/li]
[li]Delete Rows[/li]
[li]Sort[/li]
[li]User Autofilter[/li]
[li]Use PivotTables and PivotCharts[/li]
[li]Edit Objects[/li]
[/ul]
Thanks for the help