ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Setting a required cell (https://www.excelbanter.com/excel-programming/274861-re-setting-required-cell.html)

Bob Phillips[_5_]

Setting a required cell
 
In the code behind the button, check that the cell is not empty

If IsEmpty(Range("C1).Value) Then
'error
Else
'send it
End If

--

HTH

Bob Phillips

"wjd01" wrote in message
...
Hello,
I have a workbook that contains three sheets. One of the
sheets is setup as a form that the user will fill out, and
then click a button to send via outlook enclosure. Is it
possible to set a cell on a sheet as "required" (needs
entry) so if the cell is blank, the workbook can not be
mailed?

Thanks.





All times are GMT +1. The time now is 01:18 PM.

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