Re: Filling Word Form from Access

Tech-Archive recommends: Fix windows errors by optimizing your registry



Your MS Office installation got corrupt.
I would advise a full re-installation.

If it concerns an enterprise rollout of Office, you will need to talk to the IT ops department for this.

--
Krgrds,
Perry

System:
Vista/Office Ultimate
VS2005/VSTO2005 SE



<fmackay@xxxxxxxxxxx> schreef in bericht news:1171294313.739061.319070@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On 9 Feb, 18:28, "Perry" <drum...@xxxxxxxxx> wrote:
> I tried this already, "Set appWord = New Word.Application" does start
> a new WINWORD.EXE process but I can't seem to do anything with it, eg
> if I follow that line with "appWord.Visible = True" I don't get a Word
> window appearing.

That's strange.

Let's see whether yr system allows you to do something completely basic as
in:

sub testingword()
Dim wdapp as new word.application
dim doc as word.document
wdapp.visible = true
set doc = wdapp.documents.add
end sub

Do you see the newly created document?

This breaks at line "wdapp.visible=true" with error 80040155
"automation error - interface not recognised".

Dim wdapp As Word.Application
Set wdapp = New Word.Application

breaks at the second line with the same error, while

Dim wdapp As Object
Set wdapp = CreateObject("Word.Application")

gives error 424 "object required"

Trying Excel instead of Word doesn't work either - I think there's
something wrong with the office installation on this machine and I
probably need to call our IT dept in.

Many thanks for your help up to this point,

Finlay


.


Quantcast