Forcing cell entry for an entire row

smurphyuk

New Member
Joined
Jun 14, 2011
Messages
1
I have a spreadsheet that that has drop-down options in most cells. In one particular column the options are yes/no and I want to set something up where if yes is choson, people can not close or save the spreadsheet without completing the next column. I have managed to do this for one cell only but can't work out how to do this for the whole column.

So at the moment in box af2, if yes to chosen it won't let me close/save until I complete ag2. But if I go to af3 it will let me save fine. What I need is this to work for every cell in column af.

The current vsb setting is as follows.

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
If [AF2].Value = "Yes" Then
MsgBox "There MUST be an entry in Level of Investigation!", vbOKOnly, "Entry Reqd"
[AG2].Select
Cancel = True
End If
End Sub

Hope that makes sense and any help would be greatly appreciated.

Thanks.
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

Forum statistics

Threads
1,224,594
Messages
6,179,794
Members
452,943
Latest member
Newbie4296

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