Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default save w/o prompted and activate a file

I am using VBA /VB to write some macros in the MS Excel, I would like to ask
some questions :
1. How to save a workheet to a same text file without prompted by replace or
not ?
( ActiveWorkbook.SaveAs Filename:= _
"C:\Documents and Settings\lem83mk.MALAYSIA\My Documents\dummy2.txt", _
FileFormat:=xlText, CreateBackup:=False ) . I want the file is saved
automatically when macro is run without promted to be replaced or not.

2. I would like to run a macro that can activate ( double-click ) a batch
file in the directory ( C:\abc.bat ). Can this be done in the VBA macro ?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default save w/o prompted and activate a file

application.DisplayAlerts = False
' code to save file
Application.DisplayAlerts = True

look in vba help at the Shell command.

--
Regards,
Tom Ogilvy


"mok707" wrote in message
...
I am using VBA /VB to write some macros in the MS Excel, I would like to

ask
some questions :
1. How to save a workheet to a same text file without prompted by replace

or
not ?
( ActiveWorkbook.SaveAs Filename:= _
"C:\Documents and Settings\lem83mk.MALAYSIA\My Documents\dummy2.txt",

_
FileFormat:=xlText, CreateBackup:=False ) . I want the file is saved
automatically when macro is run without promted to be replaced or not.

2. I would like to run a macro that can activate ( double-click ) a batch
file in the directory ( C:\abc.bat ). Can this be done in the VBA macro ?



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
Excel - No Longer Prompted to Save When I Close File HammerD Excel Discussion (Misc queries) 1 May 8th 09 06:05 PM
Upon exiting Excel I am not prompted to SAVE the file ebbs Excel Discussion (Misc queries) 4 September 25th 08 06:08 AM
Why am I prompted to save a file when nothing has changed? SimonD Excel Discussion (Misc queries) 2 April 29th 05 02:21 PM
Save without prompt and Activate a file mok707 Excel Programming 1 August 19th 04 09:02 AM
Save without prompted and activate external file mok707 Excel Programming 1 August 19th 04 05:57 AM


All times are GMT +1. The time now is 06:45 PM.

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"