ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How do I set up some cells in a spreadsheet to be a required fiel. (https://www.excelbanter.com/excel-worksheet-functions/15352-how-do-i-set-up-some-cells-spreadsheet-required-fiel.html)

mickiemaggie

How do I set up some cells in a spreadsheet to be a required fiel.
 
I am creating a spreadsheet that users will use to select furnishings for
homes in a subdivision. I want to have some of the cells be a 'required
field' much like addresses are when one purchases items online. I want the
users to be told after all of their selections whether or not they forgot to
fill in all applicable cells. Can this be done?

Fred

I'll assume you have a command button to make calculations after all
entries have been made(?), the command button can call a procedure to
check the necessary cells to verify an entry has been made, otherwise,
set the focus to that cell.

Private Sub CheckForEntry()
'Worksheet Cell "C3" requires an entry

If Range("c3") = "" Then
MsgBox "Make an Entry in cell C3"
Range("C3").Select
End If
End Sub



mickiemaggie wrote:
I am creating a spreadsheet that users will use to select furnishings

for
homes in a subdivision. I want to have some of the cells be a

'required
field' much like addresses are when one purchases items online. I

want the
users to be told after all of their selections whether or not they

forgot to
fill in all applicable cells. Can this be done?




All times are GMT +1. The time now is 11:11 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com