JAVASCRIPT AND EXCEL, SET OUTPUT FILE NAME

  • Follow


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).name propertie but it seems to be
read-only.

Please help!
0
Reply vic74625 10/7/2003 11:54:23 AM

Hi dead,
dead wrote:
> 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).name propertie but it seems to be
> read-only.
> 
> Please help!

 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).SaveAs("c:\\dir\\MyNewFileName.xls");

See Microsoft site (MSDN) for Excel DOM

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_wrcore/html/wrconexcelobjectmodeloverview.asp

Cautiously,
Stephen

0
Reply Stephen 10/7/2003 5:58:02 PM


1 Replies
501 Views

(page loaded in 0.033 seconds)

Similiar Articles:













7/25/2012 10:51:17 AM


Reply: