Hi all,
I have an IF statement where I want code in a different macro executed when a cell is populated with a specific value. My code thus far is below:
Sub RUNOPT()
Sheets("Main Page").Select
If Sheets("Main PAGE").Range("L15") = "A" Then Call RUNA
If Sheets("Main PAGE").Range("L15") = "B" Then Call RUNB
If Sheets("Main PAGE").Range("L15") = "C" Then Call RUNC
If Sheets("Main PAGE").Range("L15") = "D" Then Call RUND
End Sub
Is it possible to add such conditions to an IF statement. I'm not entirely sure what is going on.
Any help would be greatly appreciated.
Thanks
I have an IF statement where I want code in a different macro executed when a cell is populated with a specific value. My code thus far is below:
Sub RUNOPT()
Sheets("Main Page").Select
If Sheets("Main PAGE").Range("L15") = "A" Then Call RUNA
If Sheets("Main PAGE").Range("L15") = "B" Then Call RUNB
If Sheets("Main PAGE").Range("L15") = "C" Then Call RUNC
If Sheets("Main PAGE").Range("L15") = "D" Then Call RUND
End Sub
Is it possible to add such conditions to an IF statement. I'm not entirely sure what is going on.
Any help would be greatly appreciated.
Thanks