can't copy from Word document VBA excel form
this is my first post and i am new to VB.
I am using a VBA form through Excel.
I am trying to open a word document and copy the entire contents to a text box on my form.
here is my code:
Dim wrdApp As Object
Dim wrdDoc As Object
Set wrdApp = CreateObject("Word.Application")
wrdApp.Visible = True
Set wrdDoc = wrdApp.Documents.Open(PathToDocument)
'PathToDocument uses variables that are defined earlier. it works...
wrdDoc.Edit.SelectAll. 'here is my problem
TxtSummary.SelStart = 0
@ wrdDoc.Edit.SelectAll. I get an error "Object doesn't support this property or method."
How do I select and copy the text in my word document?
Thanks a bunch...