#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default Saving

Is there a way to save so that is automatically replaces
an existing file, without asking the user?

This is what I am currently using:

ActiveWorkbook.SaveAs Filename:="C:\Dir\filename.xls", _
FileFormat:=xlNormal, Password:="",
WriteResPassword:="", _ReadOnlyRecommended:=False,
CreateBackup:=False

ActiveWorkbook.SaveAs Filename:="C:\Dir\filename.csv",
FileFormat _:=xlCSV, CreateBackup:=False

Thanks for your help.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Saving

Hi
try:
application.displayalerts=false
'saving code
application.displayalerts=true

--
Regards
Frank Kabel
Frankfurt, Germany

"Cindy" schrieb im Newsbeitrag
...
Is there a way to save so that is automatically replaces
an existing file, without asking the user?

This is what I am currently using:

ActiveWorkbook.SaveAs Filename:="C:\Dir\filename.xls", _
FileFormat:=xlNormal, Password:="",
WriteResPassword:="", _ReadOnlyRecommended:=False,
CreateBackup:=False

ActiveWorkbook.SaveAs Filename:="C:\Dir\filename.csv",
FileFormat _:=xlCSV, CreateBackup:=False

Thanks for your help.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default Saving

Thank you so much, it worked perfect.
-----Original Message-----
Hi
try:
application.displayalerts=false
'saving code
application.displayalerts=true

--
Regards
Frank Kabel
Frankfurt, Germany

"Cindy" schrieb im

Newsbeitrag
...
Is there a way to save so that is automatically

replaces
an existing file, without asking the user?

This is what I am currently using:

ActiveWorkbook.SaveAs Filename:="C:\Dir\filename.xls",

_
FileFormat:=xlNormal, Password:="",
WriteResPassword:="", _ReadOnlyRecommended:=False,
CreateBackup:=False

ActiveWorkbook.SaveAs Filename:="C:\Dir\filename.csv",
FileFormat _:=xlCSV, CreateBackup:=False

Thanks for your help.


.

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
saving Dave Peterson Excel Discussion (Misc queries) 0 March 18th 09 12:48 PM
Automaticly saving formula's to values when saving Gunti Excel Discussion (Misc queries) 8 November 11th 08 09:34 AM
saving to CD agilitygrandma Excel Discussion (Misc queries) 8 January 20th 06 08:24 PM
Saving XLS to CSV PTL Excel Discussion (Misc queries) 4 February 15th 05 06:21 AM
Saving a Workbook: Forcing User to Rename before Saving Rollin_Again[_6_] Excel Programming 5 April 16th 04 02:54 PM


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