Read only excel file in QTP

How to create read only excel file using QTP?

Questions by aditi5856

Showing Answers 1 - 2 of 2 Answers

ramugogurla

  • Feb 20th, 2008
 

Dim fso, MyFile
Set fso = CreateObject("Scripting.FileSystemObject")
Set MyFile = fso.CreateTextFile("c:testfile.txt", True)
MyFile.WriteLine("This is a test.")
MyFile.Close
with this code u can create text file and also xl files

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions