Making it so people can't excess different cells in my sheet

Mav93

Board Regular
Joined
Feb 21, 2005
Messages
107
Hi everyone!!!!!

The title may be a little deciving what i'm trying to do is make only 5 different cells on my Sheet accessible. Meaning I don't want the user to be able to click on, arrow to, tab to any other cells than that of the 5 designated cells. I know that you can lock cells and protect the sheet but even with this option a person can still arrow, click and tab to what ever cells they want.

Maybe this isn't possible if not let me know that i'm Crazy!!!!!!

Thanks again and thanks for any help in advance!!!!!!
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Good afternoon Mav93

You could use a simple piece of code like this in the worksheet event :

Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If ActiveCell.Locked = True Then Range("A1").Select
End Sub

Right click on the sheet tab and select "View Code". Paste this code into the window that opens and close. Whenever a user attempts to select a cell that is locked, they will be referred straight back to A1 - change this to one of your five cells. Worksheet protection needs to be invoked for this to work.

HTH

DominicB
 
Upvote 0

Forum statistics

Threads
1,214,643
Messages
6,120,707
Members
448,981
Latest member
recon11bucks

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