a problem after moving to Office 2007

M

Martin

Dear experts,

again, when trying to activate a certain window, through
Windows("ThisDocument.doc").Activate
word under Office2007 refuses it as an unknown command, while under
Office2003 it worked.
Does someone know how to replace this function by an equivalent command
working under O2007?

Thank you,
Martin
 
M

Martin

I think, the problem is settled in the sense, that
Windows("ThisDocument").Activate
only works in O2008 when the doc-file is saved in the mode W2008, i.e. as
'.docx'.
Thus I have to convert all incoming .doc-files into .docx-files before being
able to process them.

Regards,
Martin
 
D

Doug Robbins - Word MVP

I am not sure what you mean by "incoming". However you can certainly use
the following in Word 2007 with a document in Word97-2003 (*.doc) format

Dim adoc as Document
Set adoc = Documents.Open("Path\Filename")
adoc.Activate

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 
M

Martin

Dear Doug,

with 'incoming' I mean documents that I receive from authors outside, of
whom 95% send .doc-files.
Yes, your comment was helpful, I did not consider 'Documents.Open', it
should work with any 'incoming' kind of word-document.

Martin
 

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