Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!

Force focus to MS Word

Discussion in 'Information Technology' started by Mr B, Jul 28, 2006.

Tags:
  1. Mr B

    Mr B
    Expand Collapse
    Guest

    I have an application where I am merging to word documents and the merge is
    working as desired. However, when attempting to save the new merged document,
    a check is made to determine if a document by that name already exists. If
    one exists, the user is notified with a dialog box from Access.

    My questions is, What code can I use to force the new Word document to be
    displayed and have the focus after the message box? Right now Access remains
    as the window with the focus and MS Word is behind it.

    Any assistance is appreciated.
    --
    HTH

    Mr B
     
  2. Loading...

    Similar Threads Forum Date
    Ashdoc's Movie Review---Force 2 Theatre, Movies & Cinema Nov 20, 2016
    Interfaith Religious Freedom For Sikhs In The US Armed Forces Interfaith Dialogues Apr 20, 2016
    Hard Talk Toronto Youtube Star Jus Reign Was Forced To Remove His Turban At A California Airport Hard Talk Feb 24, 2016
    The force Blogs Oct 17, 2015
    How message of love from Sikh gurus are helping Pakistani Christians to fight forced conversions Sikh Sikhi Sikhism Oct 12, 2015

  3. Arvin Meyer [MVP]

    Arvin Meyer [MVP]
    Expand Collapse
    Guest

    Generally, you'd refer to the Word object in the automation and make it
    visible like:

    objWord.Visible = True

    --
    Arvin Meyer, MCP, MVP
    Microsoft Access
    Free Access downloads
    http://www.datastrat.com
    http://www.mvps.org/access

    "Mr B" <MrB@discussions.microsoft.com> wrote in message
    news:E2998B76-832C-49E4-A198-7F3DEEF591F9@microsoft.com...
    >I have an application where I am merging to word documents and the merge is
    > working as desired. However, when attempting to save the new merged
    > document,
    > a check is made to determine if a document by that name already exists. If
    > one exists, the user is notified with a dialog box from Access.
    >
    > My questions is, What code can I use to force the new Word document to be
    > displayed and have the focus after the message box? Right now Access
    > remains
    > as the window with the focus and MS Word is behind it.
    >
    > Any assistance is appreciated.
    > --
    > HTH
    >
    > Mr B
     
  4. Mr B

    Mr B
    Expand Collapse
    Guest

    Alvin,

    Thanks for the reply. However, it is not visibility that I am having a
    problem with. It is a windows thing. The document is merging and being
    displayed but the window in which MS Word and the document is being displayed
    is behind the Access application window.

    I need to force the window that contains Word and its document to show in
    front of the Access application.

    Any help is appreciated.
    --
    HTH

    Mr B


    "Arvin Meyer [MVP]" wrote:

    > Generally, you'd refer to the Word object in the automation and make it
    > visible like:
    >
    > objWord.Visible = True
    >
    > --
    > Arvin Meyer, MCP, MVP
    > Microsoft Access
    > Free Access downloads
    > http://www.datastrat.com
    > http://www.mvps.org/access
    >
    > "Mr B" <MrB@discussions.microsoft.com> wrote in message
    > news:E2998B76-832C-49E4-A198-7F3DEEF591F9@microsoft.com...
    > >I have an application where I am merging to word documents and the merge is
    > > working as desired. However, when attempting to save the new merged
    > > document,
    > > a check is made to determine if a document by that name already exists. If
    > > one exists, the user is notified with a dialog box from Access.
    > >
    > > My questions is, What code can I use to force the new Word document to be
    > > displayed and have the focus after the message box? Right now Access
    > > remains
    > > as the window with the focus and MS Word is behind it.
    > >
    > > Any assistance is appreciated.
    > > --
    > > HTH
    > >
    > > Mr B

    >
    >
    >
     

Share This Page