+ Reply to Thread
Results 1 to 2 of 2

Need help with message box.

  1. #1
    Pat
    Guest

    Need help with message box.

    I want to modify the following code:

    If Not IsEmpty(Cells(22, 11)) Then
    MsgBox "Old code"
    Exit Sub
    End If

    to this:

    If Not IsEmpty(Cells(22, 11) = "QS") Then
    MsgBox "New code"
    Exit Sub
    End If

    It has not worked, what should it be.
    Appreciate your help.
    Pat



  2. #2
    Norman Jones
    Guest

    Re: Need help with message box.

    Hi Pat,

    Try:

    If Cells(1, 1).Value = "QS" Then
    MsgBox "New code"
    Exit Sub
    End If


    ---
    Regards,
    Norman



    "Pat" <[email protected]> wrote in message
    news:evdy0j8%[email protected]...
    >I want to modify the following code:
    >
    > If Not IsEmpty(Cells(22, 11)) Then
    > MsgBox "Old code"
    > Exit Sub
    > End If
    >
    > to this:
    >
    > If Not IsEmpty(Cells(22, 11) = "QS") Then
    > MsgBox "New code"
    > Exit Sub
    > End If
    >
    > It has not worked, what should it be.
    > Appreciate your help.
    > Pat
    >
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1