JAVASCRIPT AND EXCEL, SET OUTPUT FILE NAME

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • dead

    #1

    JAVASCRIPT AND EXCEL, SET OUTPUT FILE NAME

    Hi, Is it possible to set the output file name of a excel file from
    javascript?

    I have a code which copies the content of an html page and pastes it
    into excel. I want the user to save the document himself but I want to
    suggest the file name so when the user clicks on the save button the
    name is already set.


    I have found the workbooks(1).na me propertie but it seems to be
    read-only.

    Please help!
  • Stephen

    #2
    Re: JAVASCRIPT AND EXCEL, SET OUTPUT FILE NAME

    Hi dead,
    dead wrote:[color=blue]
    > Hi, Is it possible to set the output file name of a excel file from
    > javascript?
    >
    > I have a code which copies the content of an html page and pastes it
    > into excel. I want the user to save the document himself but I want to
    > suggest the file name so when the user clicks on the save button the
    > name is already set.
    >
    >
    > I have found the workbooks(1).na me propertie but it seems to be
    > read-only.
    >
    > Please help![/color]

    From the little you're giving about your code, I can only assume a few
    things.

    // assuming you've previously gotten a reference to the workbooks object
    workbooks(1).Sa veAs("c:\\dir\\ MyNewFileName.x ls");

    See Microsoft site (MSDN) for Excel DOM

    http://msdn.microsoft.com/library/de...eloverview.asp

    Cautiously,
    Stephen

    Comment

    Working...