after posting i searched to board to see if this is possbile and i dont even see it asked... kinda bumping this to the top. one of you excel masters must know this.
you can set up a cell to be locked only to prevent it's contents from being changed. this would allow resizing and what not. to do so use this snippet of code:
thanks for the reply...
well that answer is on the right path... i knew how to do that much... but the problem im facing is when i lock the worksheet i am unable to resize columns.
is there a way to protect the contents of a cell but allow column resize?
If using VBA, in order to resize the columns when you have protected the worksheet, you need arguments to the protect code that specifies this as shown below for example:
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.