koden Posted March 24, 2006 Report Share Posted March 24, 2006 Sorry...but I'm not so good to this IF. My IF statement look like this: If variable T9 contains variable T5 AND If variable T9 contains variable T6 OR If variable T8 contains Restart Then delete mail End IF I surpose that the email will be deleted if T5 and T6 both are present in T9. If this is not true it will test if T8 contains restart. IF it does the email will be deleted If not it will end and go on with the rest of the macro. Is that right?? And I also has a problem: T8 contains: 1 Tryg OPC Job Error I have an IF statement that says that If T8 does not contain: Tryg OPC Then archive the mail in X folder. But even if T8 contains Tryg OPC, it sometimes archive mail in X and sometimes not. Can this be a timing problem in my IF statement??? Quote Link to comment Share on other sites More sharing options...
cyberchief Posted March 24, 2006 Report Share Posted March 24, 2006 Your First IF statement looks correct to me. For your archive question... I would check to see if text case is an issue. In your command "If T8 does not contain: Tryg OPC"... I would check the "Ignore Case". Timing should not be an issue when dealing with "IF" statements. If variable does not contain that text... it should not even go on with that statement. Quote Link to comment Share on other sites More sharing options...
koden Posted March 24, 2006 Author Report Share Posted March 24, 2006 Thanks Ignore case is marked. What do you meen with: "I would check to see if text case is an issue" ? Quote Link to comment Share on other sites More sharing options...
cyberchief Posted March 24, 2006 Report Share Posted March 24, 2006 Ignore Case is what I was talking about... Seeing if your IF statement contained text of the same case (capital or small letters) of the same text you were capturing. Quote Link to comment Share on other sites More sharing options...
koden Posted March 25, 2006 Author Report Share Posted March 25, 2006 Okay..just my english thats not so good :-) Thanks... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.