Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Suppress warnings when saving text file?

How can I suppress the warnings that Excel displays when saving a tex
file

These are the messages displayed when saving the file as text

"The file already exists. Do you want to replace the existing file?"
RESPONSE: Ye

"myfile.xls may contain features not compatible with Text..."
RESPONSE: Ye

These are the messages displayed when closing the file

"Do you want to save the changes you made?"
RESPONSE: Yes or No - can enter either as no further change
have been mad

"The file already exists. Do you want to replace the existing file?"
RESPONSE: Yes or No - can enter either as no further changes hav
been mad

Thank
--------
Message sent via www.excelforums.com
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,092
Default Suppress warnings when saving text file?

Application.DisplayAlerts = False

Make it true again before the workbook (.txt) is closed
"Snowsride - ExcelForums.com"
wrote in message
...
How can I suppress the warnings that Excel displays when saving a text
file?

These are the messages displayed when saving the file as text:

"The file already exists. Do you want to replace the existing file?"
RESPONSE: Yes

"myfile.xls may contain features not compatible with Text..."
RESPONSE: Yes

These are the messages displayed when closing the file:

"Do you want to save the changes you made?"
RESPONSE: Yes or No - can enter either as no further changes
have been made

"The file already exists. Do you want to replace the existing file?"
RESPONSE: Yes or No - can enter either as no further changes have
been made

Thanks
---------
Message sent via www.excelforums.com



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Suppress warnings when saving text file?

Application.DisplayAlerts = False
activeworkbook.SaveAs "c:\Myfolder\Myfile.csv", Fileformat:=xlCsv
ActiveWorkbook.Close SaveChanges:=False
Application.DisplayAlerts = True

--
Regards,
Tom Ogilvy

"Snowsride - ExcelForums.com"
wrote in message
...
How can I suppress the warnings that Excel displays when saving a text
file?

These are the messages displayed when saving the file as text:

"The file already exists. Do you want to replace the existing file?"
RESPONSE: Yes

"myfile.xls may contain features not compatible with Text..."
RESPONSE: Yes

These are the messages displayed when closing the file:

"Do you want to save the changes you made?"
RESPONSE: Yes or No - can enter either as no further changes
have been made

"The file already exists. Do you want to replace the existing file?"
RESPONSE: Yes or No - can enter either as no further changes have
been made

Thanks
---------
Message sent via www.excelforums.com



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
Text file saving, setting file origin mauddib Excel Discussion (Misc queries) 0 May 25th 06 02:50 PM
saving an excel file as text without text in quotes John Excel Discussion (Misc queries) 2 December 6th 05 06:20 PM
how do I stop warnings when saving .xls as csv? leeandhazel Excel Discussion (Misc queries) 1 December 13th 04 12:11 PM
suppress warnings Claude Excel Programming 2 April 21st 04 12:57 PM
Removing Macro Virus Warnings Upon File Open Wendy[_4_] Excel Programming 2 August 8th 03 04:07 PM


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