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: 6

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Hi,
using merged cells is bad practice. Nothing but trouble ...
 
Upvote 0
Upvote 0

Forum statistics

Threads
1,223,270
Messages
6,171,103
Members
452,379
Latest member
IainTru

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