Thank you very much, the above code should be the easiest way. 
Does QM have Contain functions? The line where the string is located functions? I didn't find it in the help.
Macro Macro7

Does QM have Contain functions? The line where the string is located functions? I didn't find it in the help.
Macro Macro7