Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
VBA-Excel. File-SaveAs
Hi All,
Iam calling Excel page in ASP using VB Script. After the Excel page is loaded I want the user to SaveAs in different path. How can I do it. any help would be glad asap. rgds Ramesh |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
VBA-Excel. File-SaveAs
Ramesh
Not sure how your interoperability is working but Excel has a WorkBook_BeforeSave() event that can detect if the user presses SaveAs as opposed to Save. You can then stop the save and advise. Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean) If SaveAsUI = False Then MsgBox "You must use save as NOT save", vbExclamation + vbOKOnly Cancel = True End If End Sub Alternatively, your Excel file could be saved as a template (*.xlt). This will always only allow a SaveAs -- HTH Nick Hodge Microsoft MVP - Excel Southampton, England HIS wrote in message oups.com... Hi All, Iam calling Excel page in ASP using VB Script. After the Excel page is loaded I want the user to SaveAs in different path. How can I do it. any help would be glad asap. rgds Ramesh |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
VBA-Excel. File-SaveAs
Hi Nick,
thanks for the info, but my question is.. I want to show the user the Dialog box of SAVEAS when the excel is loaded. rgds Ramesh |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
VBA-Excel. File-SaveAs
Ramesh
Application.Dialogs(xlDialogSaveAs).Show or Application.Dialogs(xlDialogSaveCopyAs).Show NickHK wrote in message oups.com... Hi Nick, thanks for the info, but my question is.. I want to show the user the Dialog box of SAVEAS when the excel is loaded. rgds Ramesh |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Confused here Prevent Saving File - but allow ONLY File SAVEAS Met | Excel Discussion (Misc queries) | |||
saveas CSV file | Excel Discussion (Misc queries) | |||
Saveas with name of another file | Excel Programming | |||
SaveAs another file name, then keep working | Excel Programming | |||
overwrite Excel SaveAs function from File menu | Excel Programming |