LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 119
Default Saving in VBA to a particular location

I have a template file that users open, which automatically runs a
script inside. The script runs a few SQL queries, formats up the
results, and then wants to save it out as a new file. Simple enough,
except...

How do I set the default file location? One would expect the path
would be part of the SaveAs, but no such luck!

And, more subtly, if the path does not exist, what do I do? I expect
most people will be opening this file from a particular machine, but
they *might* open it from a mapped drive on their own machines. I
would like to check to see if the default path exists, and if it
doesn't, default to Documents or similar.
 
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
Prevent saving on specified location Basta1980 Excel Programming 0 June 11th 08 09:11 AM
Saving to a specific location Sandy Excel Programming 9 June 9th 07 05:57 PM
saving w/sheet to different location Nigel[_21_] Excel Programming 7 October 8th 05 12:17 PM
Saving Excel in more than one location Mark C via OfficeKB.com Excel Programming 3 August 16th 05 05:57 AM
Saving in a location Greg Brow Excel Programming 2 February 4th 05 02:57 PM


All times are GMT +1. The time now is 08:43 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"