Required cell

karmakat

New Member
Joined
Sep 17, 2019
Messages
6
ok, I've tried about 2 dozen methods to acheive this, so I'm putting up a post to see if anyone here can help me.

Here's what I'm trying to acheive:

I have a sheet with 10 columns Date Served, Last Initial, First initial, Zip, First Time Visit, Current month discount, over 60, Men, Women, Children. it is imperative that I have Zip entered. I'm looking for a way to stop the user from proceeding to the next cell "First time Visit", if "Zip" is left blank. preferably this would happen when the attempt to leave the cell, but I can live with preventing the file from being closed with empty cells.


Help??
 
You can add code to the "BeforeClose" workbook event, which triggers to run automatically whenever they try to close the workbook. Is that what you are looking for?

If so, we need to determine which rows actually have data and need to be checked. For rows with data, is there one column that is ALWAYS populated, so we know we can look at that column to determine exactly where our data ends?

I don't have that column now, but i could add one at the end to use as an index. I suppose i could to a formula to increment by one for every row, then lock the cells, right?
 
Upvote 0

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
You said that you have ten columns of data (Date Served, Last Initial, First initial, Zip, First Time Visit, Current month discount, over 60, Men, Women, Children).
Are you telling me that for every row of data that you have, you cannot guarantee that any of these 10 columns will always have something in it?
 
Upvote 0

Forum statistics

Threads
1,213,487
Messages
6,113,941
Members
448,534
Latest member
benefuexx

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