Hi All

I have an excel spreadsheet that holds all the commands required to commission a device, via a terminal emulator.
At one point i have to open a text file (notepad), copy all the contents and paste it into the the terminal emulator.

I have managed thus far to open the connection, and be able to switch between excel and the terminal emulator.
Send the commands to commission.
I have managed to open a dialog to get the text file.
My problem begins where i have to paste it into the terminal program.

Here is my code upto now.

Private Sub CommandButton2_Click()

Dim vFile As Variant

CommandButton1.BackColor = &HE0E0E0
CommandButton2.BackColor = vbRed
AppActivate ("GT3000_TTerm - [TTT]")
SendKeys "{ENTER}"
Application.Wait Now + TimeValue("00:00:02")
SendKeys "n"
SendKeys "{ENTER}"
Application.Wait Now + TimeValue("00:00:02")
SendKeys "en"
SendKeys "{ENTER}"
Application.Wait Now + TimeValue("00:00:02")
SendKeys "conf t"
SendKeys "{ENTER}"
Application.Wait Now + TimeValue("00:00:02")

 vFile = Application.GetOpenFilename("All Files (*.*)," & _
    "*.*", 1, "Select File", "Open", False)
    
 If TypeName(vFile) = "Boolean" Then
        Exit Sub
    End If
    
'Need to paste into TTerm
Any Ideas...

Yours Hopefully

Craig