Fixed the operation range

cannny

New Member
Joined
Jan 27, 2019
Messages
2
Dear all,

I would like to fix the operation range from A1 to K20, prevent operator to disturb other range setting & data, please help to teach how to fix it & back to normal status.


Thanks for help.


Cannny
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Protect like this

Select cells A1:K20 \ right-click \ Format Cells \ Protection \ remove X from Locked box \ OK

Right-Click on Sheet Tab \ Protect Sheet \ Insert Passsword \ Confirm Password \ OK


Unprotect like this

Right-Click on Sheet Tab \ UnProtect Sheet \ Insert Passsword \OK


Protect again

Right-Click on Sheet Tab \ Protect Sheet \ Insert Passsword \ Confirm Password \ OK
 
Last edited:
Upvote 0
Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Application.EnableEvents = False
If Intersect(Target, [A1:K20]) Is Nothing Then
    [A1].Select
ElseIf Target.Count <> Intersect(Target, [A1:K20]).Count Then [A1].Select
End If
Application.EnableEvents = True
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,817
Messages
6,181,149
Members
453,021
Latest member
Justyna P

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