Jump to content
Sign in to follow this  
BryonR

_ExcelBookOpen

Recommended Posts

BryonR

#include <Excel.au3>

$oExcel = _ExcelBookOpen("c:\call_list.xls", $fVisible = 0, $fReadOnly = False, , )

WARNING: $fVisible: possibly used before declaration.

I don't see anything wrong... ^_^

Anyone else?

Share this post


Link to post
Share on other sites
WideBoyDixon

You don't have to include the parameter names in the call. Also, False is the default for the third parameter so you don't need to include it.

$oExcel = _ExcelBookOpen("c:\call_list.xls", 0)

WBD

Share this post


Link to post
Share on other sites
BryonR

still get the error, I do have the incude file..

$oExcel = _ExcelBookOpen("c:\call_list.xls", $fVisible = 1, $fReadOnly = True)

also tried

$oExcel = _ExcelBookOpen("c:\call_list.xls", $fVisible = 1, $fReadOnly = True,0)

I doesn't get past $fVisible

Share this post


Link to post
Share on other sites
WideBoyDixon

Did you actually read my reply or look at the code? DON'T INCLUDE THE PARAMETER NAMES IN THE CALL.

$oExcel = _ExcelBookOpen("c:\call_list.xls", 1, True)

WBD

Share this post


Link to post
Share on other sites
BryonR
^_^ I feel so ashamed... ty Edited by BryonR

Share this post


Link to post
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
Sign in to follow this  

×