Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Importing Excel sheet - Reference Values are not recognized
#1
Solved: 11 Years, 4 Months, 4 Weeks ago Smile 
Hey there!

I get an error message (#REF) when trying to import a Excelsheet A with referenced values within A to another Exelsheet B. Is it even possible to do that with QTP?

Thanks you folks!
Reply
#2
Solved: 11 Years, 4 Months, 4 Weeks ago
i have a workaround- read the reference Excel.
Reply
#3
Solved: 11 Years, 4 Months, 4 Weeks ago
Hi michiusa69,

First of all I have a question, is it mandatory to lmport the file into QTP?
If the answer is not/not sure, then you can read the value directly from the excel rather than importing the sheet into QTP so that you don't loose any data links.
Thanks,
SUpputuri
Reply
#4
Solved: 11 Years, 4 Months, 4 Weeks ago
My workaround is to loop through the parameter's values and remove the "[]" from "=[]Sheet1!A1"
Code:
Function RemoveBracket(strSheetName)
    RowCount = Datatable.GetSheet(strSheetName).GetRowCount
    For i = 1 To RowCount
        DataTable.GetSheet(strSheetName).GetParameter("ParameterName").ValueByRow(i) = "=Sheet1!A1"
    Next
End Function
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Telnet command not recognized Sanjana1987 1 2,107 09-20-2017, 03:16 PM
Last Post: Ankur
  Need help for copying values from one excel to another excel vinodhiniqa 0 1,378 07-06-2017, 05:33 PM
Last Post: vinodhiniqa
  Reading data from excel sheet serenediva 1 9,695 03-03-2017, 10:07 AM
Last Post: vinod123
  How import final calculated values by cell formula from Excel not the formula itself. qtped 1 4,897 01-17-2017, 04:05 PM
Last Post: sagar.raythatha
  Importing data sheet Santu 2 3,433 08-20-2015, 11:37 PM
Last Post: ADITI1992

Forum Jump:


Users browsing this thread: 1 Guest(s)