Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Excel GetCell "Type mismatch"
#1
Error message:
"Error (RT) in Balance_Check: 0x80020005, Type mismatch."

The data in the cell I am trying to retrieve a value from is derived from the following formula:
=IF(A4="","",SUM(Data!$C$2:C4)-SUM($D$2Big Grin4))

Function Balance_Check
Code:
Copy      Help
str sfile="$desktop$\ExcelFile.xls"
str asheet="Sheet1"
Excel.Application app._create
Excel.Workbook book=app.Workbooks.Open(_s.expandpath(sfile))
ExcelSheet es.ws=book.Worksheets.Item(asheet)

str Value
es.GetCell(Value 6 4)

It's driving me nuts! I can grab values that are static values, and most that have values derived from formulas. It seems like the "IF" statement really screws things up.

Thanks,
Jimmy Vig


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)