Re: Access automation error

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Cindy M -WordMVP- (C.Meister-C_at_hispeed.ch)
Date: 10/15/04


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 :-)



Relevant Pages

  • Re: Help with macro to assign min and max to x-axis
    ... Addressing your requests in reverse order... ... Iterating through a collection with the For...Each loop removes the ... Sub doOneChart ... > - a couple of sheets without graphs ...
    (microsoft.public.excel.charting)
  • How to destroy a parent window while a child is being created?
    ... Running Tcl-Tk application on slower computers, ... I believe must be a general situation already addressed in most Tcl-Tk ... of the second window that refer to the first one will then fail, ... Is there a typical or recommended manner of addressing this problem in ...
    (comp.lang.tcl)
  • Re: How to destroy a parent window while a child is being created?
    ... n> Running Tcl-Tk application on slower computers, ... n> I believe must be a general situation already addressed in most Tcl-Tk ... n> of the second window that refer to the first one will then fail, ... n> Is there a typical or recommended manner of addressing this problem in ...
    (comp.lang.tcl)
  • Re: OT: Music trivia..
    ... Button Window" could be taken as pro-abortion, ... addressing the option. ... Matt "Guitar" Murphy. ...
    (rec.boats)