Run Macro If Cell have "x" value

Joined
Feb 3, 2022
Messages
1
Reaction score
0
Hi,

I tried this Macro, but didn't work.

Can anyone help me get wat's wrong?

Sub A()
If Range("B18").Value = "NOVA" And (B19) = "SIM" Then
Call BAIXAS_REF_NOVA
ElseIf [B8] = "ANTIGA" And [B19] = "SIM" Then
Call BAIXAS_REF_ANTIGA
End If
End Sub
--------------
Resume: If B18="NOVA" And B19="SIM" Then Run Macro BAIXAS_REF_NOVA ; If B18="ANTIGA" And B19="SIM" then run Macro BAIXAS_REF_ANTIGA

Don't get any error, but it won't run the Macros.

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top