Using data from excel sheet for FindChild and passing as regex
Hi Everyone,
Thanks for helping. I am using a findChild method and passing in the properties from excelsheet.
Set Loading= Aliases.DataAcquisition........
PropArray = Array("UITracingText")
ValuesArray = Array("*Loader 01*") ----> This value would need to come from an excel sheet Driver.Value(1)) but needs to be able to match part only Loader 01 as UITracingText is a long string.
Set Loading = Loading.FindChild(PropArray, ValuesArray, 10000)
ValuesArray = Array("*Loader 01*") ----> This value would need to come from an excel sheet Driver.Value(1)) but needs to be able to match part only Loader 01 as UITracingText is a long string. If i dont use the value from exel sheet, then i can simple make it ValuesArray = Array("*Loader 01*") but i only want string which are matching.
Thanks for helping.
Sudha
Simply concatentate the string...
ValuesArray = Array("*" & Driver.Value(1) & "*")
This will put the value from that column in the array appropriately.