ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   WorkBook _SaveAs method help (https://www.excelbanter.com/excel-programming/376821-workbook-_saveas-method-help.html)

[email protected][_2_]

WorkBook _SaveAs method help
 
I am having trouble using the SaveAs method of the workbook class. Can
someone please tell me how to use this method.
Thanks,
Sunil


[email protected][_2_]

WorkBook _SaveAs method help
 
I forgot to mention this, I am using MFC.

wrote:
I am having trouble using the SaveAs method of the workbook class. Can
someone please tell me how to use this method.
Thanks,
Sunil



Norman Jones

WorkBook _SaveAs method help
 
Hi Suram,

Try something like:

'=============
Public Sub Tester()
Dim WB As Workbook
Const myPath As String = "C:\Data\"
Const sName As String = "ABC"

Set WB = ThisWorkbook

WB.SaveAs Filename:=myPath & sName & ".xls", _
FileFormat:=xlWorkbookNormal
End Sub
'<<=============


---
Regards,
Norman



wrote in message
ups.com...
I forgot to mention this, I am using MFC.

wrote:
I am having trouble using the SaveAs method of the workbook class. Can
someone please tell me how to use this method.
Thanks,
Sunil





NickHK

WorkBook _SaveAs method help
 
No idea what your "trouble" is, but I have had difficulties using .SaveAs
with non-ANSI letters in the path/filename on English systems, whereas
..SaveCopyAs works always.

NickHK

wrote in message
oups.com...
I am having trouble using the SaveAs method of the workbook class. Can
someone please tell me how to use this method.
Thanks,
Sunil





All times are GMT +1. The time now is 09:34 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com