not sure what they call this

geno32080

Board Regular
Joined
Jan 23, 2020
Messages
107
Office Version
  1. 2013
Platform
  1. Windows
Good Morning
What if I want the user to only be able to work in cells ranged B8:AC43. what do they all that? And can a VBA be created to do that job? Below is the sheet the end user is filling out, The top part populates automatically. the end user just fills out the info from the date (B8) and to the right of that cell.
1637423127281.png
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Good Morning
What if I want the user to only be able to work in cells ranged B8:AC43. what do they all that? And can a VBA be created to do that job? Below is the sheet the end user is filling out, The top part populates automatically. the end user just fills out the info from the date (B8) and to the right of that cell.
View attachment 51716
That's suppose to read "what do the call that"> Sorry
 
Upvote 0
You don't need VBA...

Select the cells
Right Click
Click Format Cells
Click the Protection tab
Uncheck the Locked Cells option (It should be set as Locked by default)
Click Ok
Click the Review tab
Click the Protect Sheet icon
Uncheck the Locked Cells option (and type in a password if you desire)
Click OK
Confirm the password if you have set one
 
Upvote 0
Solution
if you do want a vba solution then you can put this in the code of the workhseet:
VBA Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If (Intersect(Target, Range("B8:AC43")) Is Nothing) Then
   Range("b8").Select
End If
End Sub
 
Upvote 0
That's it ! I was over thinking it. That worked perfect, Thanks..
 
Upvote 0

Forum statistics

Threads
1,216,031
Messages
6,128,422
Members
449,450
Latest member
gunars

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