VBA to lock rows after a certain date

piqalap

New Member
Joined
Sep 18, 2014
Messages
1
Hi!
Please help me woth the following problem (it starts with B2):

Contract no.DateTodayPartner companyMerchandiseShipping dateAdjustmentsEtc.1Etc.2Etc.3Etc.4Etc.5Etc.6Etc.7
12014.02.122014.09.18XYZ Inc.Books2014.02.26No1234567
22014.03.132014.09.18ASD Co.Food2014.03.27No1234567
32014.07.122014.09.18FYI Inc.Cars2014.07.26No1234567
42014.08.192014.09.18LOL Co.Pens2014.09.02Shipment changed1234567
52014.10.012014.09.18TBA Inc.Jokes2014.10.15No1234567
….….….….….….….….….….….….….….
2000….….….….….….….….….….….….….

<tbody>
</tbody>

I'd like to lock the entire rows where the "Date" column is smaller than the "Today" column, in this example, only the Contract no. 5 could be modified. This should go up to 2000 rows.

Thank you!
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.

Forum statistics

Threads
1,215,012
Messages
6,122,682
Members
449,091
Latest member
peppernaut

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