grantwilliams
Programmer
Hi!
I'm putting together a client-side script which takes data from an HTML form, opens an Excel template, transfers the data and then saves the spreadsheet to a new location.
I have been able to use another form text field to enter the name the file is to be saved as, but cannot find a way of allowing the user to specify where the file should be saved to. I COULD do this with another form text field containing the directory location which could be changed to suit, but this would not be appropriate in this case. What is needed is a 'Save As' dialog box.
Can anyone help me with this?
Below is the code I have at the moment which saves and closes the file:
Dim x1saveName
x1saveName = document.myForm.fileName.value
x1Book.SaveAs "C:\saved\" + x1saveName + ".xls"
x1Book.Close
ExcelSheet.Quit
I'm putting together a client-side script which takes data from an HTML form, opens an Excel template, transfers the data and then saves the spreadsheet to a new location.
I have been able to use another form text field to enter the name the file is to be saved as, but cannot find a way of allowing the user to specify where the file should be saved to. I COULD do this with another form text field containing the directory location which could be changed to suit, but this would not be appropriate in this case. What is needed is a 'Save As' dialog box.
Can anyone help me with this?
Below is the code I have at the moment which saves and closes the file:
Dim x1saveName
x1saveName = document.myForm.fileName.value
x1Book.SaveAs "C:\saved\" + x1saveName + ".xls"
x1Book.Close
ExcelSheet.Quit