Unlock cells if cell is populated macro

psrs0810

Well-known Member
Joined
Apr 14, 2009
Messages
1,102
I am looking to create a report that will pull some information together and other individuals will need to report on. The information that I will pull together will fill in on columns A:C. What I would like to do is lock the entire worksheet except cells D:F where there is information populated in row A:C.
For example, the information that will be reported on will start at row 23. So if A23:C26 are populated, then I need to have the worksheet be unlocked in cells D23:F26
Keeping in mind that the rows will vary from report to report.
How do I unlock the cells D23:F26 if A23:C26 are populated in a macro?
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,167,747
Messages
5,855,428
Members
431,731
Latest member
Sagar k

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
Top