How to call SUB stored in Variables?
All the functions and Sub's names have been stored in Excel.
I am opening excel and fetching the Functions and SUB's name in the variable.
Call OpenExcel(sFileName, vSheet)
Run_Function = ReadExcelDataSingle(sFileName, Row, Flow_Called, vSheet) 'Name of sub getting stored in Variable
Call CloseExcel(sFileName) 'Close Data File
Run_Function 'Calling SUB
But this giving an Type Mismatch error.
Please tell me how can i run Sub name stored in variable?
Re: How to call SUB stored in Variables?
Look at Execute and ExecuteGlobal statement in QTP help