Allowing access to only 3 columns NOT the first one

HunterN

Active Member
Joined
Mar 19, 2002
Messages
479
I have to do this in VBA code because I am using UserForms to allow the option of MODIFY.
Once the user chooses to modify the list I want the to be able to modify everything but the first column. I have a total of four columns.

This is what I coded. It worked on a stand alone worksheet, but not within my Excel system that I have built. The user does not have access to the taskbar or formula bar until they press the MODIFY button.

Sub Modify_click()
Worksheets("MCAR Project List").Unprotect
Range("A3").Select
Range(ActiveCell, ActiveCell.End (xlDown)).Select

Selection.Locked = True
Selection.FormulaHidden = True

bottomRw = Application.CountA (ActiveSheet.Range("A:A"))

ActiveSheet.Range(Cells(2, 2), Cells(bottomRw, 4)).Select

Selection.Locked = False
Selection.FormulaHidden = False
Range("A1:D1").Select
ActiveSheet.Protect Contents:=True, Scenarios:=True
End Sub

Thanks for looking at it! Nancy
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

Forum statistics

Threads
1,225,070
Messages
6,182,669
Members
453,131
Latest member
BeLocke

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