Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 2 of 2

Thread: Warning message boxes

  1. #1
    New Member
    Join Date
    Apr 2002
    Posts
    43
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    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).

  2. #2
    Board Regular
    Join Date
    Feb 2002
    Location
    Houston, TX
    Posts
    359
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    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 ]

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •