• OLE Syntax (2002/XPSP3)

    Author
    Topic
    #418225

    Hi all,

    I am using JavaScript to run excel throught OLE.

    I ma having a problem with the syntax required fro the command

    MsExcel.Workbooks(WorkBookName).Close

    What I would like to do is append SaveChanges:=False to the command but I cannot make it work.

    In short how can I get the command below to be accepted in JavaScript?

    MsExcel.Workbooks(WorkBookName).Close SaveChanges:=False

    Thanks in advance for any advice

    Viewing 0 reply threads
    Author
    Replies
    • #940607

      Try

      MsExcel.Workbooks(WorkBookName).Close(False);

      • #940614

        Hans,

        That worked fine. Once I figured out that JScript likes ‘false’ not ‘False’…

        The solution is pretty obvious when you are given it.

        Thanks for thehelp.

    Viewing 0 reply threads
    Reply To: OLE Syntax (2002/XPSP3)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: