ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   how do i copy protected spreadsheet in a macro (https://www.excelbanter.com/excel-discussion-misc-queries/237803-how-do-i-copy-protected-spreadsheet-macro.html)

R Davis

how do i copy protected spreadsheet in a macro
 
I need to copy and paste the values of a password protected worksheet via a
macro. The macro shuts down because of the protection. Is there a way
around this?

Dave Peterson

how do i copy protected spreadsheet in a macro
 
If you know the password, then include the code to unprotect the worksheet, do
the work and reprotect the worksheet.



R Davis wrote:

I need to copy and paste the values of a password protected worksheet via a
macro. The macro shuts down because of the protection. Is there a way
around this?


--

Dave Peterson


All times are GMT +1. The time now is 02:14 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com