Same Action - Multiple Data Tables
I am calling one action, but am importing multiple datasheets using the AddSheet and ImportSheet methods. When I do the call to the action though, I cannot find a method to apply that action to the other data tables. Any ideas?
Re: Same Action - Multiple Data Tables
QTP gives you default action sheets so you can use DataTable object's property Globalsheet or Localsheet to access to them.
However, you can access to any additional datasheet you added and imported by:
To get to the specific row by
After the above, you can get any data from one cell or set to one cell by
strXXX = DataTable("columnName", "sheetName")
DataTable("columnName", "sheetName") = "xxx"