Formatting a locked worksheet column

Spichael

Board Regular
Joined
Mar 18, 2002
Messages
73
I have a locked worksheet. One of the columns needs formatted to Number "0.000".
I keep getting an error message. The only way it'll let me perform the action is to unlock the sheet which opens it up to corruption. I would appreciate any VB code.
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Could you maybe just unlock that one cell? Or do you need the entire sheet to be locked?

If you can leave that one cell unlocked, you could unprotect the worksheet, right click on the cell, go to Format Cell, click the Protection tab and uncheck the Locked tick box. Now come out and protect the sheet as usual. That cell will stay unlocked and the rest of the sheet will be protected
 
Upvote 0
I have tried that and it still gives me the error "Unable to set NumberFormat property of the Range Class".
 
Upvote 0

Forum statistics

Threads
1,214,655
Messages
6,120,760
Members
448,991
Latest member
Hanakoro

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