ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Save without prompt and Activate a file (https://www.excelbanter.com/excel-programming/307411-save-without-prompt-activate-file.html)

mok707

Save without prompt and Activate a file
 
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 ?


Norman Jones

Save without prompt and Activate a file
 
See either of your other two posts for responses

---
Regards,
Norman



"mok707" wrote in message
...
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 ?





All times are GMT +1. The time now is 02:57 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com