Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default overwriting a file

i have code written in VBA and at the end of the code i have this


ChDir "E:\Joss Blaze\temp"
ActiveWorkbook.SaveAs Filename:="E:\Joss
Blaze\temp\temp.xls", FileFormat:= _
xlNormal, Password:="", WriteResPassword:="",
ReadOnlyRecommended:=False _
, CreateBackup:=False

MsgBox "Extraction Successful Proceed To Access", vbInformation,
"Info."
ActiveWorkbook.Close
Application.Quit
Excel.Application.Quit

can anyone tell me how to overwrite the temp file automaticallywith out
having to click yes while the messege "this files already exists do you want
to overwrite...."

thank you

jordan


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default overwriting a file

i got an error messege which is

Run-time error '438':

Object doesn't support this property or method

what can i do now



"Frank Kabel" wrote in message
...
Hi
try
application.displayevents=false
'your code
application.displayevents=true


-----Original Message-----
i have code written in VBA and at the end of the code i

have this


ChDir "E:\Joss Blaze\temp"
ActiveWorkbook.SaveAs Filename:="E:\Joss
Blaze\temp\temp.xls", FileFormat:= _
xlNormal, Password:="",

WriteResPassword:="",
ReadOnlyRecommended:=False _
, CreateBackup:=False

MsgBox "Extraction Successful Proceed To Access",

vbInformation,
"Info."
ActiveWorkbook.Close
Application.Quit
Excel.Application.Quit

can anyone tell me how to overwrite the temp file

automaticallywith out
having to click yes while the messege "this files already

exists do you want
to overwrite...."

thank you

jordan


.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default overwriting a file

Hi
try
application.displayevents=false
'your code
application.displayevents=true


-----Original Message-----
i have code written in VBA and at the end of the code i

have this


ChDir "E:\Joss Blaze\temp"
ActiveWorkbook.SaveAs Filename:="E:\Joss
Blaze\temp\temp.xls", FileFormat:= _
xlNormal, Password:="",

WriteResPassword:="",
ReadOnlyRecommended:=False _
, CreateBackup:=False

MsgBox "Extraction Successful Proceed To Access",

vbInformation,
"Info."
ActiveWorkbook.Close
Application.Quit
Excel.Application.Quit

can anyone tell me how to overwrite the temp file

automaticallywith out
having to click yes while the messege "this files already

exists do you want
to overwrite...."

thank you

jordan


.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 170
Default overwriting a file


"Frank Kabel" wrote in message
...
Hi
try
application.displayevents=false
'your code
application.displayevents=true



I think you mean Application.DisplayAlerts NOT displayevents

Keith


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default overwriting a file

Hi
as Keith already mentions I used the wrong name. Make this
application.displayalerts = ...

-----Original Message-----
i got an error messege which is

Run-time error '438':

Object doesn't support this property or method

what can i do now



"Frank Kabel" wrote in message
...
Hi
try
application.displayevents=false
'your code
application.displayevents=true


-----Original Message-----
i have code written in VBA and at the end of the code i

have this


ChDir "E:\Joss Blaze\temp"
ActiveWorkbook.SaveAs

Filename:="E:\Joss
Blaze\temp\temp.xls", FileFormat:= _
xlNormal, Password:="",

WriteResPassword:="",
ReadOnlyRecommended:=False _
, CreateBackup:=False

MsgBox "Extraction Successful Proceed To

Access",
vbInformation,
"Info."
ActiveWorkbook.Close
Application.Quit
Excel.Application.Quit

can anyone tell me how to overwrite the temp file

automaticallywith out
having to click yes while the messege "this files

already
exists do you want
to overwrite...."

thank you

jordan


.



.

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
Overwriting cells StephenAccountant Excel Discussion (Misc queries) 2 September 6th 07 12:36 PM
Overwriting most of a workbook Brad Excel Discussion (Misc queries) 3 July 2nd 07 02:42 PM
Overwriting #DIV/0 value using ISERROR ConfusedNHouston Excel Discussion (Misc queries) 3 May 18th 07 07:12 PM
Spreadsheets are overwriting each other Bryan Excel Discussion (Misc queries) 5 August 12th 05 01:51 PM
Overwriting a file automatically using saveas in a macro Sam Excel Programming 5 May 5th 04 04:01 AM


All times are GMT +1. The time now is 09:35 PM.

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"