I don't even know how to search on this one! I'm quite confused. Following
is a code snippit. It has opened a template and updated some doc variables
and name then saves it. The template contains a picture. When I insert the
"oDoc.SaveAs strDocName"... word opens up to a window for editing the picture
(on top), and a window for the new doc. Prior to adding the save, only one
window would open and it was for the new doc. HELP!! Thanks!

With oApp
.Options.DefaultFilePath(wdDocumentsPath) = ROOT_PATH & strSavDir
.Selection.Goto wdGoToBookmark, Name:="WrittenBy"
.Selection.Text = Author
.Selection.Goto wdGoToBookmark, Name:="StartHere"
oDoc.SaveAs strDocName
.Visible = True
End With

Re: Picture opening as a doc?????????????? by Word

Word
Sun Apr 10 17:03:18 CDT 2005

G'day TRM <TRM@discussions.microsoft.com>,

> .Selection.Goto wdGoToBookmark, Name:="WrittenBy"
> .Selection.Text = Author

can all be replaced with

ActiveDocument.Bookmarks("WrittenBy").Range.text = Author

Then check your StartHere is not wrapped around the picture.

Steve Hudson - Word Heretic

steve from wordheretic.com (Email replies require payment)
Without prejudice


TRM reckoned:

>I don't even know how to search on this one! I'm quite confused. Following
>is a code snippit. It has opened a template and updated some doc variables
>and name then saves it. The template contains a picture. When I insert the
>"oDoc.SaveAs strDocName"... word opens up to a window for editing the picture
>(on top), and a window for the new doc. Prior to adding the save, only one
>window would open and it was for the new doc. HELP!! Thanks!
>
>With oApp
> .Options.DefaultFilePath(wdDocumentsPath) = ROOT_PATH & strSavDir
> .Selection.Goto wdGoToBookmark, Name:="WrittenBy"
> .Selection.Text = Author
> .Selection.Goto wdGoToBookmark, Name:="StartHere"
> oDoc.SaveAs strDocName
> .Visible = True
>End With


Re: Picture opening as a doc?????????????? by TRM

TRM
Mon Apr 11 16:09:11 CDT 2005

Thank you... I've replaced that code. I did rearrange the order of the save
and it seems to have worked!

"Word Heretic" wrote:

> G'day TRM <TRM@discussions.microsoft.com>,
>
> > .Selection.Goto wdGoToBookmark, Name:="WrittenBy"
> > .Selection.Text = Author
>
> can all be replaced with
>
> ActiveDocument.Bookmarks("WrittenBy").Range.text = Author
>
> Then check your StartHere is not wrapped around the picture.
>
> Steve Hudson - Word Heretic
>
> steve from wordheretic.com (Email replies require payment)
> Without prejudice
>
>
> TRM reckoned:
>
> >I don't even know how to search on this one! I'm quite confused. Following
> >is a code snippit. It has opened a template and updated some doc variables
> >and name then saves it. The template contains a picture. When I insert the
> >"oDoc.SaveAs strDocName"... word opens up to a window for editing the picture
> >(on top), and a window for the new doc. Prior to adding the save, only one
> >window would open and it was for the new doc. HELP!! Thanks!
> >
> >With oApp
> > .Options.DefaultFilePath(wdDocumentsPath) = ROOT_PATH & strSavDir
> > .Selection.Goto wdGoToBookmark, Name:="WrittenBy"
> > .Selection.Text = Author
> > .Selection.Goto wdGoToBookmark, Name:="StartHere"
> > oDoc.SaveAs strDocName
> > .Visible = True
> >End With
>
>