IF/ElseIF Condition ignored?
When I was attempting to create a macro to automate a few commands for me. The first IF condition was if a window does not exist, it would continue with the automated macro. However the Else IF condition was if the window "does" exist.
The problem lies in the fact that it's ignoring the conditions and running both codes within the IF and Else IF. Regardless if the window exists or not.
The coding is fine, the logical sense of the codes looks to be flawless. Without the If and Else if the code works perfectly without a single problem. But adding in a condition with the window existing, the window being an error popup and/or security popup. Once the "condition" is supposedly met, it would run a 2nd macro which would take care of everything that could happen.
Any questions or information please post.
Thank you,
ZappCoding
|