I have this code that I got from these forums (can't remember who posted it...sorry ) that pastes text directly into Notepad.
VB Code:
  1. Dim lnghWnd1 As Long
  2. Dim lnghWnd2 As Long
  3. Dim sText As String
  4.  
  5.     Clipboard.Clear
  6.     Clipboard.SetText Text1.Text
  7.    
  8.     Shell "notepad", vbNormalFocus
  9.     lnghWnd1 = FindWindow(vbNullString, "Untitled - Notepad")
  10.     lnghWnd2 = GetWindow(lnghWnd1, GW_CHILD)
  11.    
  12.     sText = Clipboard.GetText
  13.     SendMessage lnghWnd2, WM_SETTEXT, Len(sText), sText
This works like a champ. What I need to do is modify this to paste the text into a blank word document, so I changed it to this
VB Code:
  1. Dim lnghWnd1 As Long
  2. Dim lnghWnd2 As Long
  3. Dim sText As String
  4. Dim objWord As Word.a
  5.     Clipboard.Clear
  6.     Clipboard.SetText Text1.Text
  7.    
  8.     Shell "c:\program files\microsoft office\office11\winword.exe", vbNormalFocus
  9.     lnghWnd1 = FindWindow(vbNullString, "Document1 - Microsoft Word")
  10.     lnghWnd2 = GetWindow(lnghWnd1, GW_CHILD)
  11.    
  12.     sText = Clipboard.GetText
  13.     SendMessage lnghWnd2, WM_SETTEXT, Len(sText), sText
However, it does not paste the text into the document. The text is on the clipboard. When the word document opens, if I do a Ctrl-V or an Edit/Paste, the text is copied to the document, but I need it to be there without having to paste it myself.

I don't want the text pasted into an existing document, I need the text pasted into a new, blank, document1, Word document.

How would I do that?