Re: Overwriting a file in VB
- From: "Karl E. Peterson" <karl@xxxxxxxx>
- Date: Mon, 23 Jan 2006 14:22:48 -0800
Crash wrote:
>>> I'm creating a macro that saves some files each week. I wanted to
>>> save the files over top of the files from last week. Each time I
>>> run the macro it asks me to overwrite the files and I would like it
>>> to just do it without asking.
>>
>> Sounds like you're using VBA within an Office app? What/where?
>>
>> True VB file i/o never prompts you for anything.
>
> Yeah, I'm actually using VB script inside an Excel document.
VBA, actually. VBS is another beast entirely. (These are *not* petty
distinctions, either.)
In Excel, you can set the Application.DisplayAlerts property to False, do
the dirty deed, then set it back to True.
--
Be the 10,000th Signer!
http://classicvb.org
.
- Follow-Ups:
- Re: Overwriting a file in VB
- From: Douglas J. Steele
- Re: Overwriting a file in VB
- References:
- Re: Overwriting a file in VB
- From: Karl E. Peterson
- Re: Overwriting a file in VB
- Prev by Date: Re: Overwriting a file in VB
- Next by Date: Re: Multiline comments changed in VS2005
- Previous by thread: Re: Overwriting a file in VB
- Next by thread: Re: Overwriting a file in VB
- Index(es):
Relevant Pages
|