Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Coverting string to object
#1
Not Solved
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Replace a string in a word document with another string rekha.naik 8 15,005 11-14-2013, 12:58 PM
Last Post: pranikgarg

Forum Jump:


Users browsing this thread: 1 Guest(s)