G
Guest
Hi
I have
Dim wdApp As Word.Application
Set wdApp = New Word.Application
With wdApp
.Documents.Open FileName:="c:\test.doc"
With .Selection
.EndKey Unit:=wdStory
.TypeParagraph
.TypeText filnavn.Value
End With
.ActiveDocument.Save
.Quit
End With
Set wdApp = Nothing
I get a error in
.EndKey Unit:=wdStory
I know that this line should make me go to the end of the document?
Hope some one can help
Alvin
I have
Dim wdApp As Word.Application
Set wdApp = New Word.Application
With wdApp
.Documents.Open FileName:="c:\test.doc"
With .Selection
.EndKey Unit:=wdStory
.TypeParagraph
.TypeText filnavn.Value
End With
.ActiveDocument.Save
.Quit
End With
Set wdApp = Nothing
I get a error in
.EndKey Unit:=wdStory
I know that this line should make me go to the end of the document?
Hope some one can help
Alvin