331
Views
11
Comments
Solved
[Advanced Excel] After Protecting Sheet Formatting Cells To Be Unlocked is Ignored
Question
advanced-excel
Service icon
Forge asset by Carlos Freitas

Hi,

I am assuming I am setting this up correctly

My requirement is to lock the header row and block users from adding or removing columns.

I have protected the sheet and left the  allowInsertColumns and allowDeleteColumns as default(false)

set the other allows to true

used the CellFormat_ApplyToRange to set the locked state to false for row 2 column 1 to end of column/row

in the resulting spreadsheet all rows/columns are still locked

when I unprotect sheet and check protection they are in a locked state.

It seems the locked state of the format is being ignored


2025-09-25 22-50-38
Hanno
Solution

I believe this issue has been resolved in the latest version.

Hanno

UserImage.jpg
Carmen

Same problem here, has anyone come up with a solution?

2024-11-20 08-28-20
Pedro Marques

Hi,

I had the same problem while trying to protect the header of a worksheet.

The workaround used was uploading (as a resource) an excel sheet with the first row locked, and then fill the data in that worksheet, as shown in the oml attached.


Hope this helps,

Pedro

excel.oml
UserImage.jpg
Giulio Basevi

I have same problem, I cannot set a conditional lock to a cell.

Solution?

2020-05-05 19-30-34
José Mendes

Having the same problem here... any solution? The workaround presented above only serves that specific use case. But, if we want to unlock some specific cells, it's no use.

2019-11-27 05-27-15
Sivaramakrishnaprasad Repalle

Having same issue, not able to unlock specific cells. Did anyone find the solution?

2025-09-25 22-50-38
Hanno

Hi Neil

I haven't tried it personally, but have tried swopping around the order in which you are applying the logic to see if that gives a different result? I.e. first apply CellFormat_ApplyToRange and then do protect the sheet?

I'll set out some time this week to look into this one.

Hanno

2024-12-17 14-32-59
Matthias Preuter
 
MVP

Also have the same problem, I have to create a sheet where a user can edit parts of the screen and lock the rest of the workbook, anyone has a solution for this?

Kind regards,

Matthias

2025-09-25 22-50-38
Hanno
Solution

I believe this issue has been resolved in the latest version.

Hanno

UserImage.jpg
Neil Evans

Thank you, I am not in a position to test, if someone else is able to confirm this is fixed then I will mark as solution

Regards

2021-04-01 07-44-07
João Coelho

I confirm!
I had the same issue, after updating the component all started to work properly!


UserImage.jpg
Neil Evans

Thanks for confirming that’s great news

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.