Copying Protected Worksheet

Dummy Excel

Well-known Member
Joined
Sep 21, 2005
Messages
1,004
Office Version
  1. 2019
  2. 2010
  3. 2007
Platform
  1. Windows
Hi All,
I am looking to create my own macro from an external report that I receive.
The external report is write protected so the first step that im getting the macro to do is copy the cells into a new workbook.
my code is:
Code:
    Range("A1").CurrentRegion.Copy
    Selection.Copy
    Workbooks.Add
    ActiveSheet.Paste
i get an error message saying that the workboook is write protected, unprotect first. Is there a way around this? i mean all i want to do is copy and paste!

thanks
Sam
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Do you know the password of the protected sheet?
 
Upvote 0
no, no idea...the report is from one of my suppliers.
i just dont understand how you can copy and paste the data into a new workbook so you can then use all the functions of excel, although when you try and do it via a macro it doesn't allow you to
 
Upvote 0

Forum statistics

Threads
1,215,491
Messages
6,125,108
Members
449,205
Latest member
ralemanygarcia

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top