Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Importing Excel sheet - Reference Values are not recognized
#1
Solved: 10 Years, 8 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: 10 Years, 8 Months, 4 Weeks ago
i have a workaround- read the reference Excel.
Reply
#3
Solved: 10 Years, 8 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: 10 Years, 8 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 1,845 09-20-2017, 03:16 PM
Last Post: Ankur
  Need help for copying values from one excel to another excel vinodhiniqa 0 1,182 07-06-2017, 05:33 PM
Last Post: vinodhiniqa
  Reading data from excel sheet serenediva 1 8,776 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,698 01-17-2017, 04:05 PM
Last Post: sagar.raythatha
  Importing data sheet Santu 2 3,197 08-20-2015, 11:37 PM
Last Post: ADITI1992

Forum Jump:


Users browsing this thread: 1 Guest(s)