| || |
Browse for a file in QTP
I remember a long time ago someone posted the answer to this one, but I cant find it in the search.
What I am looking for is for QTP script to stop, pop up <Browse> dialogue box and ask me to find the file I want to import into my dataTable.
Anyone remember how to do this?
Re: Browse for a file in QTP
Sorry. Stupid me:
Set objDialog = CreateObject("UserAccounts.CommonDialog")
.InitialDir = cstr(idir)
createFileOpenDialog = objDialog.FileName
Set objDialog = Nothing
xlsFile=filePath("c:\", "Workbook|*.xls|Templates|*.dot|Text Files|*.txt")