PC Review


Reply
Thread Tools Rate Thread

ActiveWorkbook.SaveAs

 
 
Little Penny
Guest
Posts: n/a
 
      16th Jan 2008


I'm using the bit of code to save my workbook base on the value in a
cell.

ActiveWorkbook.SaveAs FileName:=FiName

But it always savse in the my doc folder. Can I force it to save in
the folder of my choice.


Thanks
 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      16th Jan 2008
Make sure you include the path somewhere--in the code or in the cell:

ActiveWorkbook.SaveAs FileName:="C:\yourfolderhere\" & FiName



Little Penny wrote:
>
> I'm using the bit of code to save my workbook base on the value in a
> cell.
>
> ActiveWorkbook.SaveAs FileName:=FiName
>
> But it always savse in the my doc folder. Can I force it to save in
> the folder of my choice.
>
> Thanks


--

Dave Peterson
 
Reply With Quote
 
GTVT06
Guest
Posts: n/a
 
      16th Jan 2008
On Jan 15, 8:08*pm, Little Penny <LittlePenn...@gmail.com> wrote:
> I'm using the bit of code to save my workbook base on the value in a
> cell.
>
> ActiveWorkbook.SaveAs FileName:=FiName
>
> But it always savse in the my doc folder. Can I force it to save in
> the folder of my choice.
>
> Thanks


ActiveWorkbook.SaveAs FileName:="C:\Documents and Settings\AnyPath\" &
FiName & ".xls"
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
ActiveWorkbook.SAVEAS for *.xls Faraz A. Qureshi Microsoft Excel Programming 6 4th Aug 2009 09:08 AM
saveas ActiveWorkbook.SaveAs Filename:=Range("A1").Value DarrenL Microsoft Excel Programming 4 18th Apr 2009 07:54 AM
ActiveWorkbook.SaveAs =?Utf-8?B?ZnJhbmtz?= Microsoft Excel Programming 6 6th Aug 2007 10:04 PM
ActiveWorkbook SaveAs Mike Microsoft Excel Programming 2 11th Feb 2005 03:23 AM
RE: activeworkbook.saveas =?Utf-8?B?SiBTaWx2ZXI=?= Microsoft Excel Programming 0 25th Jun 2004 09:01 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:07 PM.