Ive got some code that checks if a cell is a number if it is then it runs a msgbox if its text or empty then displays a msgbox and halts.
I'm struggling to work out how i can get it to check other cells to display different msgboxs? As in check cell C5 is not empty else display msg box.
I'm struggling to work out how i can get it to check other cells to display different msgboxs? As in check cell C5 is not empty else display msg box.
Code:
Private Sub cmdinvoiceadd_Click() If IsNumeric(Range("C4").Value) And Not IsEmpty(Range("C4")) Then
FinishInvoice
invoiceclear
Else
MsgBox "Please enter Invoice number"
End If
End Sub