Warning message boxes

Frankie needs HELP

New Member
Joined
Apr 3, 2002
Messages
43
Anyone got any ideas:

In my 7 column spreadsheet I want a warning sign to appear IF in column E there is no dates (meaning that no one has been admitted).
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Does column 7 contain and formulas or data?

If you want to use a formula you can use

=IF(MID(CELL("format",E1),1,1)<>"D","WARNING","")

or you can just use that in a macro..

WARNING!: If the cells are formatted with the date format but are empty, it will not show a warning.

NOTE: A word of warning. I tried to change the format of the reference cell to see if the formula updated. It didn't I have to double-click in the cell and hit enter (basically like re-entering it) for it to return the right value.

Macro?: Try this reworking this macro, I haven't got this part to work,

If CELL("format",E & i & ),1,1)<> "D" Then

not sure how to write that code, hopefully you do. If so, post it back here so that I can learn something

If CELL("format",E & i & ),1,1)<> "D" Then

Sub Warning()

For i = 1 To 10
If CELL("format",E & i & ),1,1)<> "D" Then
Range("G" & i).Value = "Warning"
End If


End Sub
This message was edited by Cosmos75 on 2002-04-10 11:39
 
Upvote 0

Forum statistics

Threads
1,214,525
Messages
6,120,051
Members
448,940
Latest member
mdusw

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