Amerifax-Bob Posted June 20, 2012 Report Share Posted June 20, 2012 I have a line of text that I am copying to Variable %T%. I have a few different scenarios that I need to check that line of text for in order to run the proper macro. I am processing a text file into variables but I need to determine which line I am on within the text file, in order to run the proper macro against that line. I though and IF state would be best. I am familiar with If Statements but somewhere must be missing something. If my variable contains the text: "BLD Info Update" I want to run Macro - Builder "SqFt" I want to run Macro - Model "Picture" I want to run Macro - Picture "Hours" I want to run Macro - Hours I have tried so many different ways and I am just not getting it right. Can't I say: If contains... run macro a or if contains... run macro b or if contains... run macro c I was running into a problem with my End Ifs. I just can't quite see what I am doing wrong. Any help is always appreciated. Heather Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.