Hello,

I am using the following code to open a word docuement:

With WrdApp
.Documents.Open("C:\My Documents\MyDoc.doc", missing, missing, missing,
missing, missing, missing, missing, missing, missing, missing, missing)
.Selection.Paste()
.Visible = True
.Activate()
.NormalTemplate.Saved = True
End With

1) I have noticed that this does work with Word 2002, but it does with all
other versions. Any Ideas?

2) When the user goes to save the document it defaults to MyDoc.doc, is
there a way to change the name (programmatically) that will default to a
different name instead of MyDoc.doc.

Thanks,

Chuck

Re: Word Document by Charles

Charles
Mon Apr 25 15:05:30 CDT 2005

Hello, I got Word 2002 to work. The computer did not have the framework
on it. huh. Anyway, still looking for a way to change the default save as
document name #2 below?

Thanks,

Chuck


"Charles A. Lackman" <Charles@CreateItSoftware.net> wrote in message
news:OqTp5BcSFHA.2748@TK2MSFTNGP09.phx.gbl...
Hello,

I am using the following code to open a word docuement:

With WrdApp
.Documents.Open("C:\My Documents\MyDoc.doc", missing, missing, missing,
missing, missing, missing, missing, missing, missing, missing, missing)
.Selection.Paste()
.Visible = True
.Activate()
.NormalTemplate.Saved = True
End With

1) I have noticed that this does work with Word 2002, but it does with all
other versions. Any Ideas?

2) When the user goes to save the document it defaults to MyDoc.doc, is
there a way to change the name (programmatically) that will default to a
different name instead of MyDoc.doc.

Thanks,

Chuck




Re: Word Document by TC

TC
Mon Apr 25 22:44:24 CDT 2005

Ask in a Word newsgroup. It's nothing to do with .NET, surely.

HTH,
TC