ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Trying to create err msg if cell is left blank (https://www.excelbanter.com/excel-programming/420187-trying-create-err-msg-if-cell-left-blank.html)

CarTel Boy

Trying to create err msg if cell is left blank
 
Tried to use validation to program a cell to give error msg if left blank
but, it wont. what other options are their for cell programming.

David

Trying to create err msg if cell is left blank
 
Hi,
Not an error message, but

Sub BlankCell()
' BlankCell Macro
If ActiveCell.Value = "" Then
Dim Msg, Title, Response
Msg = "Cell is blank"
Title = "Blank Cell"
Style = vbCritical
Msg = "Cell is blank ?"
Style = vbCritical
Response = MsgBox(Msg, Style, Title)
End If
End Sub
Hope this is close enough to help


"CarTel Boy" wrote:

Tried to use validation to program a cell to give error msg if left blank
but, it wont. what other options are their for cell programming.


Tim

Trying to create err msg if cell is left blank
 
conditional formatting? you could set the relevant empty cells to a colour
(eg, red) if blank


"CarTel Boy" <CarTel wrote in message
...
Tried to use validation to program a cell to give error msg if left blank
but, it wont. what other options are their for cell programming.





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

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