Copying merged cells in Protected sheet w/ VBA

brstep

New Member
Joined
Aug 31, 2023
Messages
1
Platform
  1. Windows
  2. Web
I currently have a macro that if initiated copies a new table into a protected worksheet.

the blank cells in the receiving worksheet are not protected, so that it can receive it
when protecting the worksheet, I allow for copied cells and format changes

For some reason, it will not copy over the merged cells correctly when the sheet is protected.
If the sheet it not protected, it copies the merged cells just fine.
This is the same result when using the macro or doing it manual, so the issue is when the sheet is locked.

Below are the sheet protections.... Any ideas?

1693488851387.png
 

Attachments

  • 1693488845549.png
    1693488845549.png
    21.1 KB · Views: 5

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Hi,
using merged cells is bad practice. Nothing but trouble ...
 
Upvote 0
Upvote 0

Forum statistics

Threads
1,215,110
Messages
6,123,146
Members
449,098
Latest member
Doanvanhieu

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