WorkBook _SaveAs method help

  • Thread starter Thread starter suram.sunil
  • Start date Start date
S

suram.sunil

I am having trouble using the SaveAs method of the workbook class. Can
someone please tell me how to use this method.
Thanks,
Sunil
 
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
'<<=============
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top