Hi all,
I have the below code, which I cannot get to work , I'm obviously overlooking something here . Would someone be able to assist?
Private Sub CheckAmtType()
Dim AmtACAV As Integer
AmtACAV = AmtTypeCheck
Range("E2").Select
Do Until ActiveCell.Value = Empty
If ActiveCell.Value <> "LA" Then
MsgBox "Amount Type AC or AV Incorrect"
ElseIf ActiveCell.Value <> "LV" Then
MsgBox "Amount Type AC or AV Incorrect"
End If
ActiveCell.Offset(1, 0).Select
Loop
End Sub
I have the below code, which I cannot get to work , I'm obviously overlooking something here . Would someone be able to assist?
Private Sub CheckAmtType()
Dim AmtACAV As Integer
AmtACAV = AmtTypeCheck
Range("E2").Select
Do Until ActiveCell.Value = Empty
If ActiveCell.Value <> "LA" Then
MsgBox "Amount Type AC or AV Incorrect"
ElseIf ActiveCell.Value <> "LV" Then
MsgBox "Amount Type AC or AV Incorrect"
End If
ActiveCell.Offset(1, 0).Select
Loop
End Sub
Last edited: