Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Save As issue
#7
Solved: 11 Years, 4 Months ago
Raj,

I changed my address to be: O:\QTP Tests\QTPOutputData\ViewZipFax.xls

Now I get the Run Error:

Microsoft Office Excel cannot access the file 'O:\QTP Tests\QTPOutputData\ViewZipFax.xls'. There are several possible reasons:

• The file name or path does not exist.
• The file is being used by another program.
• The workbook you are trying to save has the same name as a currently open workbook.

Function file: O:\QTP Tests\LibraryImageAccessFunctions-2.qfl
Line (956): " set wb=objExcel.Workbooks.open(FilePath)".

By my intended code, if the test does not find the DocViewHref.xls file, then Save. If a file is found, SaveAs.

Currently, the Book1 is saved to DocViewHref.xls, but Book1 remains open and DocViewHref.xls is open too.

Thoughts?

thx for yoyr help. ;-)
Reply


Messages In This Thread
Save As issue - by mv8167 - 07-07-2011, 11:01 PM
RE: Save As issue - by rajpes - 07-07-2011, 11:20 PM
RE: Save As issue - by mv8167 - 07-08-2011, 04:35 AM
RE: Save As issue - by mv8167 - 07-08-2011, 09:43 PM
RE: Save As issue - by rajpes - 07-08-2011, 09:56 PM
RE: Save As issue - by mv8167 - 07-09-2011, 12:24 AM
RE: Save As issue - by mv8167 - 07-09-2011, 01:54 AM
RE: Save As issue - by rajpes - 07-09-2011, 08:02 AM
RE: Save As issue - by mv8167 - 07-11-2011, 08:51 PM
RE: Save As issue - by rajpes - 07-11-2011, 10:23 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Save or Save As not working for QTP 11 Nick 1 3,222 08-13-2011, 12:16 PM
Last Post: vaddevinod

Forum Jump:


Users browsing this thread: 1 Guest(s)