Jump to content

Excel formulae examples


Recommended Posts


Here shows how you can write any excel formula in a cell with ExcelCom, and return an answer.

[needs version 1_2_3 for new close and exit commands]


;needs version 1_2_3 for new close and exit commands


If Not FileExists($FilePath) Or Not StringInStr($FilePath, "xls") Then

  $FilePath = FileOpenDialog("Go - Choose your excel file as inbuilt one not exists", $FilePath, "Worksheet" & " (" & "*.xls" & ")", 1)












_XLclose($FilePath,0); no changes and close workboot; not  Excel

msgbox (0,"_XLformula=", $Formula1&"="&$var1&@CRLF&$Formula2&"="&@tab&$var2&@CRLF&$Formula3&"="&@tab&$var3&@CRLF&$Formula4&"="&@tab&$var4&@CRLF&$Formula5&"="&@tab&$var5)



Best, Randall Edited by randallc
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

  • Recently Browsing   0 members

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