

- LOCK A COLUMN IN PLACE IN EXCEL FOR MAC 2011 HOW TO
- LOCK A COLUMN IN PLACE IN EXCEL FOR MAC 2011 CODE

LOCK A COLUMN IN PLACE IN EXCEL FOR MAC 2011 HOW TO

If you try to select cell A3 or A5 in current worksheet, the cursor will be moved to the right adjacent cell automatically. Now cell A3 and A5 are locked in current worksheet. Press the Alt + Q keys simultaneously to close the Microsoft Visual Basic for Applications window. Note: In the code, Column 1, Row = 3 and Row = 5 indicate cell A3 and A5 in current worksheet will be locked after running the code. VBA code: Lock specified cells without protecting the whole worksheet Private Sub Worksheet_SelectionChange(ByVal Target As Range)Ĭells(Target.Row, Target.Column).Offset(0, 1).Select
LOCK A COLUMN IN PLACE IN EXCEL FOR MAC 2011 CODE
Then copy and paste the below VBA code into the Code window. Right click the sheet tab, and select View Code from the right-clicking menu.Ģ. Supposing you need to lock cell A3 and A5 in current worksheet, the following VBA code will help you achieve it without protecting the whole worksheet.ġ. Amazing! Using Efficient Tabs in Excel Like Chrome, Firefox and Safari! Save 50% of your time, and reduce thousands of mouse clicks for you every day!
