I'm having trouble with the following code. Hopefully someone is able to help.
If Instruction D20 = Yes and the value in column in E = 6 and AK = 1, then it should put "Test Message". The program works when And Range("AK" & r).Value = "1" is commented out.
Is there any way for the additional criteria to be added? Currently, it is as if all of column AK <> 1, because nobody received the test message.
Thank you!
Code:
If Sheets("Instructions").Range("D20").Value = "Yes" And Range("E" & r).Value = 6 And Range("AK" & r).Value = 1 Then
VestingReport2Import_4Message 3, False, r, "_", "_", "Test Message"
If Instruction D20 = Yes and the value in column in E = 6 and AK = 1, then it should put "Test Message". The program works when And Range("AK" & r).Value = "1" is commented out.
Is there any way for the additional criteria to be added? Currently, it is as if all of column AK <> 1, because nobody received the test message.
Thank you!
Last edited: