Click to See Complete Forum and Search --> : Sending text to another window...


Noob 4 ever
August 25th, 2001, 06:08 PM
Can anyone post the code on how to send text from a text box on my program to Notepad when you press the command button.

So the text box would have something like, "Test", written in it, and when you push the command button it will find the notepad window and write "Test" to it. Thx for any help you give me.

Shiv Kumar G.M.
August 26th, 2001, 03:17 AM
Private Sub Command1_Click()
ShellX = Shell("notepad", vbNormalFocus)
SendKeys Text1.Text
End Sub