Re: Access automation error
From: Cindy M -WordMVP- (C.Meister-C_at_hispeed.ch)
Date: 10/15/04
- Next message: Cindy M -WordMVP-: "Re: Word2003/Word2000 protection"
- Previous message: Cindy M -WordMVP-: "Re: Word 2003 - collating issues"
- In reply to: Max: "Access automation error"
- Next in thread: Max: "Re: Access automation error"
- Reply: Max: "Re: Access automation error"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 15 Oct 2004 10:56:27 +0200
Hi Max,
Have you also tried application.Activate? (For the Word application object, of
course. It's not clear from what you show if you're actually addressing that
object.)
> I am using the following code from within Access 97 to automate a WordXP
> document.
> When word is opened instead or reading the document and being left to work
> on it the focus of the window comes back to access. I have added these lines
> at just before the last end with and still get the problem:
> .Application.Visible = True
> .WindowState = wdWindowStateMaximize
> I have checked the code with break points and nothing runs after this sub is
> exited.
>
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org
This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)
- Next message: Cindy M -WordMVP-: "Re: Word2003/Word2000 protection"
- Previous message: Cindy M -WordMVP-: "Re: Word 2003 - collating issues"
- In reply to: Max: "Access automation error"
- Next in thread: Max: "Re: Access automation error"
- Reply: Max: "Re: Access automation error"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|