How can we check whether a particular sheet loaded (existed)
or not in Data Table.

Answer Posted / ramana vanteru

For the above answers, i would like to add somemore info,
In datatable, after adding a sheet, we can get the sheet
count with the following script..

Ex: datatable.addsheet("New_sheet")
msgbox datatable.getsheetcount

Note: "getsheetcount" will give us the no.of sheets present
in the datatable.

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can we retrieve the Bug Ids which are open&Reopen in status through QTP scrit?Please find the script which i tried... Dim objBugFactory, objBug Dim BugId Set TDConnection = QCUtil.TDConnection Set objBug = TDConnection.BugFactory If QCUtil.IsConnected then Reporter.ReportEvent 0, "Connected", "Connected to server: " + QCUtil.TDConnection.ServerName + chr (13) +"Project: " + QCUtil.TDConnection.ProjectName + chr (13) + "Domain: " + QCUtil.TDConnection.DomainName Reporter.ReportEvent 0, "Current time on server is","==>" & TDConnection.ServerTime Else Reporter.ReportEvent 1, "Not connected", "Not connected to Quality Center" End If If mybug.Status="Open" Then BugId=mybug.DefectId MsgBox BugId End If 'OR**********************************--------------------- -----********************************** If Bug_Fields("BG_STATUS").Value ="Open" Or "Re Open"Then BugId=Bug_Fields("BG_BUG_ID").Value MsgBox BugId End If

2660


Explain how you can delete excel file in qtp?

683


To which environments does quicktest professional supports?

629


How do you test the text displayed in the header portion of times of india epaper. Hot news(banner) are scrolling in the top of the page, how do you test using QTP?

1596


Hi Samrat, Thank u very much, what u said it is right.

1473






What is recovery scenario manager? When you go for recovery scenario manager?

669


what testplan contents and what test strategy contents,what is the diff b/w them

1734


How software automation specialist enter steps in the Expert View?

1763


What are the different types of recording modes?

614


Why do you create a text checkpoint on a Web application? What is the purpose of the Close method?

1444


Why qtp the best testing tool?

650


What is the parameterization?

670


Explain the differences between table and db checkpoints?

668


How to start recording using quicktest professional (qtp)?

690


How many types of recording modes in qtp? Describe each type with an example where we use them?

704