#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 29
Default SaveAs

this might be an easy one for someone in here , i have a short script that
saves a file in 2 places by over writing the exsisting files, when i run the
script i get a box that requires me to click on it to overwright the file....
how can i get the script to do this without asking ?
thank you in advance for your help

Stan
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Don Don is offline
external usenet poster
 
Posts: 487
Default SaveAs

Can you post the code you are using?

Or, maybe this sample of code I use for file "replacement" will help...

ActiveWorkbook.SaveAs FileName:="c:\Readymix\" + savedfile,
FileFormat:=xlNormal, Password:="", WriteResPassword:="",
ReadOnlyRecommended:=False, CreateBackup:=False


"Stan Halls" wrote:

this might be an easy one for someone in here , i have a short script that
saves a file in 2 places by over writing the exsisting files, when i run the
script i get a box that requires me to click on it to overwright the file....
how can i get the script to do this without asking ?
thank you in advance for your help

Stan

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 29
Default SaveAs

ChDir "O:\Distribution\SHalls\1NewBuild\11lodplan\Schedu le"
ActiveWorkbook.SaveAs Filename:= _
"O:\Distribution\SHalls\1NewBuild\11lodplan\Schedu le\delsch.xls" ,
FileFormat _
:=xlNormal, Password:="", WriteResPassword:="", ReadOnlyRecommended _
:=False, CreateBackup:=False

ChDir "P:\Distribution\Schedule\Bracknell"
ActiveWorkbook.SaveAs Filename:= _
"P:\Distribution\Schedule\Bracknell\delsch.xls ",
FileFormat:=xlNormal, _
Password:="", WriteResPassword:="", ReadOnlyRecommended:=True, _
CreateBackup:=False
Range("A2").Select
Don,
this is the code i am using but i still get a dialog box come up with
file exists , do you wish to replace Y/ N/ C buttons, in lotus 123 its ,
close 1 stops this but i dont know what to do in excel

"Don" wrote:

Can you post the code you are using?

Or, maybe this sample of code I use for file "replacement" will help...

ActiveWorkbook.SaveAs FileName:="c:\Readymix\" + savedfile,
FileFormat:=xlNormal, Password:="", WriteResPassword:="",
ReadOnlyRecommended:=False, CreateBackup:=False


"Stan Halls" wrote:

this might be an easy one for someone in here , i have a short script that
saves a file in 2 places by over writing the exsisting files, when i run the
script i get a box that requires me to click on it to overwright the file....
how can i get the script to do this without asking ?
thank you in advance for your help

Stan

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default SaveAs

Stan

Application.DisplayAlerts = False

your save code here

Application.DisplayAlerts = True


Gord Dibben MS Excel MVP

On Tue, 28 Nov 2006 07:49:03 -0800, Stan Halls
wrote:

this might be an easy one for someone in here , i have a short script that
saves a file in 2 places by over writing the exsisting files, when i run the
script i get a box that requires me to click on it to overwright the file....
how can i get the script to do this without asking ?
thank you in advance for your help

Stan


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 29
Default SaveAs

Gord
Thanks that worked perfect

Stan

"Gord Dibben" wrote:

Stan

Application.DisplayAlerts = False

your save code here

Application.DisplayAlerts = True


Gord Dibben MS Excel MVP

On Tue, 28 Nov 2006 07:49:03 -0800, Stan Halls
wrote:

this might be an easy one for someone in here , i have a short script that
saves a file in 2 places by over writing the exsisting files, when i run the
script i get a box that requires me to click on it to overwright the file....
how can i get the script to do this without asking ?
thank you in advance for your help

Stan





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Don Don is offline
external usenet poster
 
Posts: 487
Default SaveAs

Nice. Yeah Stan...what Gord said!!

This little codeline helps me as well.

Sorry I wasnot more helpful, Stan!

"Gord Dibben" wrote:

Stan

Application.DisplayAlerts = False

your save code here

Application.DisplayAlerts = True


Gord Dibben MS Excel MVP

On Tue, 28 Nov 2006 07:49:03 -0800, Stan Halls
wrote:

this might be an easy one for someone in here , i have a short script that
saves a file in 2 places by over writing the exsisting files, when i run the
script i get a box that requires me to click on it to overwright the file....
how can i get the script to do this without asking ?
thank you in advance for your help

Stan



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
SAveAs worksheet Brian Young Excel Worksheet Functions 14 October 25th 06 12:21 PM
When I SaveAs, the hour glass does not go away, nothing happens mcrelf Excel Worksheet Functions 1 April 22nd 06 01:51 AM
QUERY: Excel's SaveAs so slow.. KevinGPO Excel Worksheet Functions 2 February 15th 06 03:43 PM
SaveAS macro Query Nigel Excel Discussion (Misc queries) 1 May 13th 05 01:17 PM
error message with saveas DJA Excel Discussion (Misc queries) 6 February 17th 05 06:03 PM


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