Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Ed Ed is offline
external usenet poster
 
Posts: 279
Default How can I force the file to over write the existing file

have the follow code which works fine unless a file of that name already
exists.
wbkNew.SaveAs sFileName

How can I force the file to over write the existing file.

Ed

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default How can I force the file to over write the existing file

Try:

On Error Resume Next
kill sFileName
On Error GoTo 0
sbkNew.SaveAs sFileName

Cheers - Jeff

"Ed" wrote:

have the follow code which works fine unless a file of that name already
exists.
wbkNew.SaveAs sFileName

How can I force the file to over write the existing file.

Ed

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
User replaces existing file with blank during file open sjs Excel Discussion (Misc queries) 3 August 18th 08 06:16 PM
How can I force the file to over write the existing file Ed[_29_] Excel Programming 0 August 16th 06 09:40 PM
Force Save over existing file XCESIV[_18_] Excel Programming 3 May 25th 06 08:51 AM
Importing text file, only option to edit existing file smokey99 Excel Discussion (Misc queries) 8 April 26th 06 09:08 PM
Write over existing file with no Prompt DNewton Excel Programming 2 April 29th 04 06:54 PM


All times are GMT +1. The time now is 11:02 AM.

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"