Making files from VBA?

P

Paul

Hey, I want to create a simple .bat file and a txt from a
macro. Is this possible? How can I do it?

-Thanks
Paul
 
C

Charles Maxson

Paul,

Here is the approach BUT promise you will be good ;-) This is a open avenue
for inappropriate behavior (uh.... viruses)

Sub WriteBatch()

Open "c:\Test.bat" For Output Shared As #1
Print #1, "echo Your code here"
Close

End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top