Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 97
Default How to specify path when using SaveAs ?

moExcelWS.SaveAs() takes a filename as a parameter and the file is saved in
My Documents folder.
I woul like to specify the folder where to save the file.
How to do it?
Thanks,
Jack


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default How to specify path when using SaveAs ?

What happens if you pass in the full path ?

Tim

"Jack" <replyto@it wrote in message
...
moExcelWS.SaveAs() takes a filename as a parameter and the file is saved
in My Documents folder.
I woul like to specify the folder where to save the file.
How to do it?
Thanks,
Jack



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default How to specify path when using SaveAs ?


Just include the full path in the filename. E.g.,

moExcelWS.SaveAs "C:\Whatever\Folder\You\Like\TheFile.xls"

Cordially,
Chip Pearson
Microsoft MVP
Excel Product Group
Pearson Software Consulting, LLC
www.cpearson.com
The San Diego Project Group, LLC
(email is on the web site)
USA Central Daylight Time (-5:00 GMT)



On Sat, 4 Oct 2008 02:07:01 -0400, "Jack" <replyto@it wrote:

moExcelWS.SaveAs() takes a filename as a parameter and the file is saved in
My Documents folder.
I woul like to specify the folder where to save the file.
How to do it?
Thanks,
Jack

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
SaveAs using Hyperlink/Path in a cell SJW_OST[_2_] Excel Programming 1 August 27th 08 10:53 AM
Changing Path for SaveAs Functions Rick B Excel Programming 2 November 27th 07 05:49 PM
Macro path follows the "SaveAs" file OlieH Excel Programming 1 March 3rd 07 01:50 AM
SaveAs File Path Method kartune85 Excel Programming 1 June 20th 06 07:56 AM
SaveAs and relative path dev[_2_] Excel Programming 2 December 19th 03 02:50 PM


All times are GMT +1. The time now is 06:29 PM.

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

About Us

"It's about Microsoft Excel"