ActiveWorkbook.SaveAs

  • Thread starter Thread starter Little Penny
  • Start date Start date
L

Little Penny

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
 
Make sure you include the path somewhere--in the code or in the cell:

ActiveWorkbook.SaveAs FileName:="C:\yourfolderhere\" & FiName
 
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"
 

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