Jump to content

Excel UDF read formula


Recommended Posts

Try this:

#Include <Excel.au3>
$oExcel = _ExcelBookOpen(@ScriptDir & "\grafic.xls", 0);file not visible
$sCellValue = _ExcelReadCell($oExcel, 4, 3);row 4, col 3 (C4)
MsgBox(0, "", "The Cell Value is: " & @CRLF & $sCellValue, 2)
_ExcelBookClose($oExcel)
Link to comment
Share on other sites

The above works for me. It returns -21.

Did you point _ExcelReadCell to the correct cell?

(I did have to add $oExcel.Quit to properly close Excel though, but that's another issue)

Hmm maybe I am using the wrong UDF version

If I change the cell in 'normal data', I see the content.

Link to comment
Share on other sites

  • 4 months later...

WIMHEK....HELP!

I have the opposite problem. When I read a cell, I get the value, I want the formula.

How do I get the formula? How did you get it?

Henry

Hi

I am using the ExcelCom_UDF, where I read data from an excel sheet.

I cannot get the result of a formula. Is there a way to fetch this ?

.

Link to comment
Share on other sites

Try taietel's solution in post #2.

Your formula seems to be at fault? ";" should be a ","

I don't think so.

Using dutch excel "=NETTO.WERKDAGEN(NU();L7)" works, while "=NETTO.WERKDAGEN(NU(),L7)" tells me there is an error in my formula.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...