Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50313

If Statement Help

$
0
0
Hi Everyone,

Having trouble with some if statements (not a programmer but learning!)

Code:

If Range("C31") = "True" & Range("C33") = "False" Then Email_Subject = "Retail" Else
If Range("C33") = "True" & Range("C31") = "False" Then Email_Subject = "Wholesale" Else
If Range("C33") & ("c31") = "True" Then Email_Subject = "Retail" & "Wholesale" Else
If Range("C33") & ("C31") = "False" Then Email_Subject = "false"

It always sends subject as "Wholesale" however doesnt syntax out so not really sure what ive done wrong, in my mind its worded correctly lol.

Viewing all articles
Browse latest Browse all 50313

Latest Images

Trending Articles



Latest Images