06-02-2008, 01:52 PM
Hi
I have retrieved a string value from excel sheet having the name of a control say "Dialog", now I want to convert this string to object.
How can I do this?
I have tried the following codes:
object = "Dialog"
1) Set toObject = GetObject(object) it is giving run time error with no. -2147221020
2) Set toObject = GetObject("C:\Program Files\Mercury Interactive\QuickTest Professional\bin",object) it is giving run time error with no. 429
I have retrieved a string value from excel sheet having the name of a control say "Dialog", now I want to convert this string to object.
How can I do this?
I have tried the following codes:
object = "Dialog"
1) Set toObject = GetObject(object) it is giving run time error with no. -2147221020
2) Set toObject = GetObject("C:\Program Files\Mercury Interactive\QuickTest Professional\bin",object) it is giving run time error with no. 429