Automation error

T

tim cadieux

Using the below code gives me this error

Run-time error '-2147467259(80004005):
Automation error


If TextD_Modification.text <> "" Then
TextModification.Text =
ActiveDocument.BuiltInDocumentProperties
(wdPropertyTimeLastSaved)
 
M

martinique

What is TextD_Modification? An object? A UDT?

References to ActiveDocument fail in some contexts also (can fail if the
active 'document' is actually a DOT file)
 
C

Cindy Meister -WordMVP-

Hi Martinique,
References to ActiveDocument fail in some contexts also (can fail if the
active 'document' is actually a DOT file)
Can't say I've ever encountered that. Do you have a specific example?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jan 24 2003)
http://www.mvps.org/word

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 
M

martinique

Can't dredge up the specific code (we were really glad to be rid of it!) but
it entailed running Word via OLE from VB, where Word was not visible. The
same sort of situation in which the Selection object malfunctions.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top