Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default 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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default 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


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default 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




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default 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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there a method by which we can programatically save the workbook? divya Excel Programming 4 July 12th 06 11:52 AM
Workbook Property or Method Gary''s Student Excel Programming 3 February 17th 06 03:11 PM
Cant use this protectio method in a shared workbook??? Simon Lloyd[_618_] Excel Programming 1 June 2nd 05 06:16 PM
Sheets select method fails when workbook is opened by another workbook Mike Excel Programming 2 June 8th 04 04:17 AM
Workbook Open method Gwen[_2_] Excel Programming 2 June 2nd 04 05:53 PM


All times are GMT +1. The time now is 08:24 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"