Batch

  • Thread starter Thread starter Wanda
  • Start date Start date
W

Wanda

I can pull up an application through code (i.e.
Notepad). What I want to be able to do is add text within
Notepad and incorporate some of the simple text variables
within the Custom Form I built. Is there code that can
be added to this to do this? Is it the same type of code
that I would use to implement text and variables to an
email created through a Command button? Thanks. Wanda

Sub lblBatch_Click()
Set objWSHShell = CreateObject("WScript.Shell")
objWSHShell.Run "Notepad.exe"
End Sub
 
No, they're totally different. If you want to create a text file, don't use
Notepad. Instead use the FileSystemObject properties and methods.
 
Back
Top