Pop up restriction box

ada111

Board Regular
Joined
Feb 19, 2015
Messages
74
Hi, I am needing a way to have a pop up come up restricting a user from moving on until a certain column is filled. I have a spreadsheet for a doctor's office and it has columns B-J. Columns B-F need to stay untouched. But when the user gets to column G, I need a macro where the user CANNOT move on unless column G is filled. I have a drop down box that lists providers/users and I need a pop up restriction that says "You Must Fill Out Providers/Users First".

Any help will be amazing. Thank you all in advance!
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Can you explain what you mean by "Columns B-F need to stay untouched"? How is the user interacting with the worksheet (I trying to figure out how they get on the row in the first place in order that they should be locked into Column G on that row)?
 
Upvote 0
I have columns B-J and what I am wanting is a box that pops up if a user tries to go to column H-J and did not choose an option in the drop down menu in column G. So users can put in information freely but if they try to go to columns H-J and column G is not filled out first, then I want a box to come up saying "You Must Enter In Provider/User First"
 
Upvote 0
I have columns B-J and what I am wanting is a box that pops up if a user tries to go to column H-J and did not choose an option in the drop down menu in column G. So users can put in information freely but if they try to go to columns H-J and column G is not filled out first, then I want a box to come up saying "You Must Enter In Provider/User First"
You can use Data Validation to restrict the user from entering any values in cells H:J unless Column G on that row is filled in first... would that be acceptable? If so...

1) Select Columns H:J

2) Click the "Data Validation" button on the Data tab ("Data Tools" panel).

3) Select "Custom" from the "Allow" drop-down, make sure the "Ignore blank" checkbox is not checked and put this formula in the "Formula" field...

=LEN(INDEX(G:G,ROW(H1)))

4) Click the "Error Alert" tab and put a message in the "Error message" field; something like this maybe... "You must fill out Column G for this row first!"

5) OK your way back to the worksheet and you are done
 
Upvote 0
Hey Rick! I did the data validation and it worked for one cell then I started clicking in any cell in H:J and it didn't come up. I know that in H11:J33 is the section that I need in the code. So if column G is not filled out and the user tries to type in cells H11:J33, then the box comes up.
 
Upvote 0
Hey Rick! I did the data validation and it worked for one cell then I started clicking in any cell in H:J and it didn't come up. I know that in H11:J33 is the section that I need in the code. So if column G is not filled out and the user tries to type in cells H11:J33, then the box comes up.
Sorry, I forgot to lock the Column G references. Use this formula instead...

=LEN(INDEX($G:$G,ROW(H1)))
 
Upvote 0
Hey Rick, that didn't work either. Now the box isn't coming up at all.
It works for me. Why don't you clear the existing validation that you have (there is a "Clear All" button on the validation dialog box) and start the process over again using my corrected formula instead.
 
Upvote 0
I cleared all the validations and then highlighted H11:J33 and did data validation then custom (unchecked ignore blanks) then did =LEN(INDEX($G:$G,ROW(H1))) and did the error message and clicked ok. But nothing happened. I tested it, and the box never came up.
 
Upvote 0

Forum statistics

Threads
1,214,522
Messages
6,120,020
Members
448,939
Latest member
Leon Leenders

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