#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default save as

Hi
I'm writeing a macro that list's a directory in a spreadsheet then saves to
that directory. It works fine the firs time round but next time it's run it
is asking to overwrite the previous file. I want it to overwrite without
asking. there is around 1000 folders that it saves to so it's a bit tedious
pressing ok 1000 times. is there any way to do this?

cheers


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 550
Default save as

step,

Try
Application.DisplayAlerts = False
before the save code
and set it back to True afterwards.

John

step wrote:

Hi
I'm writeing a macro that list's a directory in a spreadsheet then saves to
that directory. It works fine the firs time round but next time it's run it
is asking to overwrite the previous file. I want it to overwrite without
asking. there is around 1000 folders that it saves to so it's a bit tedious
pressing ok 1000 times. is there any way to do this?

cheers


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
Save, save as, page setup dimmed out in unprotected excel sheet? ccKeithJ Excel Discussion (Misc queries) 3 December 14th 07 07:07 PM
SAVE and SAVE AS options disappeared from the drop down FILE menu [email protected] Excel Discussion (Misc queries) 2 July 12th 07 09:14 AM
Command Button Save As Application.ExecuteExcel4Macro ("SAVE.AS?() Paul Dennis Excel Discussion (Misc queries) 5 September 18th 06 05:34 PM
when i save xls file, debug script is running and canno't save fil Imtiaz Excel Discussion (Misc queries) 1 July 16th 05 03:47 PM
Save Excel file - prompts to save - no Volitile functions used POWER CERTS Excel Worksheet Functions 2 November 1st 04 09:27 PM


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