Can anybody helps me for getting the Vb code for opening a file in append mode

i tried opening the closed file Text.doc using the vb code
Set subDoc = appWord.Documents.Open(FileName:=saveSubFolderPath & "\" & Text
& ".doc", Visible:=False)

for appending i used below codeSelection.EndKey Unit:=wdStory.

but the error i got was object variable or with block variable not set

RE: opening a word document in append mode by JeanGuyMarcil

JeanGuyMarcil
Tue May 20 04:53:01 PDT 2008

"Jishith" wrote:

>
> Can anybody helps me for getting the Vb code for opening a file in append mode
>
> i tried opening the closed file Text.doc using the vb code
> Set subDoc = appWord.Documents.Open(FileName:=saveSubFolderPath & "\" & Text
> & ".doc", Visible:=False)
>
> for appending i used below codeSelection.EndKey Unit:=wdStory.
>
> but the error i got was object variable or with block variable not set

What is "codeSelection"?
Show us more code...