Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default SaveAs and Replace File

Hi
I have to save an excel file, I'm using the saveas method in a vb6 application, and in the case of the file already esists, a message box appears..
I can Avoid this message box and save the file? or...I can get the value of the answer to this message box to manage the code

Thanks!
Milly
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default SaveAs and Replace File

fName = "C:\Myfolders\Myfile.xls"
if dir(fName) < "" then
' file exists, what do you want to do
Else
' file doesn't exist, what do you want to do
End if

--
Regards,
Tom Ogilvy

"Milly" wrote in message
...
Hi!
I have to save an excel file, I'm using the saveas method in a vb6

application, and in the case of the file already esists, a message box
appears...
I can Avoid this message box and save the file? or...I can get the value

of the answer to this message box to manage the code?

Thanks!!
Milly



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
Confused here Prevent Saving File - but allow ONLY File SAVEAS Met JMay Excel Discussion (Misc queries) 2 June 17th 07 04:37 PM
saveas CSV file stevekirk Excel Discussion (Misc queries) 0 August 10th 06 01:11 PM
File saves ok, SaveAs VERY slow CLR Excel Discussion (Misc queries) 6 August 12th 05 08:26 PM
Saveas with name of another file sowetoddid[_19_] Excel Programming 15 June 11th 04 04:53 PM
SaveAs another file name, then keep working L Mehl Excel Programming 2 February 24th 04 02:11 AM


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