Forum Discussion

Ashwin05's avatar
Ashwin05
Occasional Contributor
8 years ago

remote procedure call failed while saving an excel file through vbscript in testcomplete

I am getting "remote procedure call failed " error  while saving an excel file through vbscript in testcomplete 

5 Replies

  • NisHera's avatar
    NisHera
    Valued Contributor

    can you post the code you getting error ...

    look at the call stack where you get error what dose it shows you?

    • Ashwin05's avatar
      Ashwin05
      Occasional Contributor

      Dim objExcel, objWorkbook, objDriverSheet, columncount, rowcount,strReleaseDate,strReleasePswd

      set objExcel = Createobject("Excel.Application")
      Set objWorkbook = objExcel.WorkBooks.Open(exppath)
      Set objDriverSheet = objWorkbook.Worksheets("TestCase")

      for row_idx = 1 to rowcount
                Stepnum = objdriversheet.cells(row_idx,1)
                Stepdesc = objdriversheet.cells(row_idx,2)
      .....

                  objWorkbook.Save--[Getting error at this point]
      Next

       

      • Colin_McCrae's avatar
        Colin_McCrae
        Community Hero

        If it opens it OK, and reads data from it OK, but can't save it, that sounds like a write permission issue?