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: 3,885
Default saving files in a macro

Hi
to prevent this message try
'...
application.displayalerts=false
activeworkbook.saveas "your_filename"
application.displayalerts=True
'...

--
Regards
Frank Kabel
Frankfurt, Germany


Kathy wrote:
I am trying to save a file (with in a macro) using the below

statement
ActiveWorkbook.SaveAs FileName:="T:\ISBu\IS1\KD2039 FRESH.xls"

but I DO NOT want the user to be prompted with the message - this
file already exist do you wish to overwite yes no cancel (if they
choose no it errors or - I want it to default to YES UNLESS there is
a way that I can verify (and this really has been the entire
problem) - I would like to have the macro VERIFY that they are on the
NETWORK DRIVE 'T' and NOT the local drive 'C' -

is either of these option possible

Thanks you in advance


 
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
saving files stacey Excel Discussion (Misc queries) 1 December 2nd 09 09:26 PM
Macro for saving files where title is made from cell references [email protected] Excel Discussion (Misc queries) 1 May 12th 07 06:23 PM
Closing files and saving files dan Excel Worksheet Functions 0 August 15th 06 04:07 AM
Saving csv files Steve Excel Discussion (Misc queries) 2 July 20th 05 06:43 PM
Saving files Kathy[_6_] Excel Programming 4 January 29th 04 05:42 PM


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