Welcome to SPN

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

Sign Up Now!
  1.   Become a Supporter    ::   Make a Contribution   
    Target (Recurring Monthly): $200 :: Achieved: $98

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

    >
    >
    >
     
Since you're here... we have a small favor to ask...

More people are visiting & reading SPN than ever but far fewer are paying to sustain it. Advertising revenues across the online media have fallen fast. So you can see why we need to ask for your help. Donating to SPN's is vote for free speech, for diversity of opinions, for the right of the people to stand up to religious bigotry. Without any affiliation to any organization, this constant struggle takes a lot of hard work to sustain as we entirely depend on the contributions of our esteemed writers/readers. We do it because we believe our perspective matters – because it might well be your perspective, too... Fund our efforts and together we can keep the world informed about the real Sikh Sikhi Sikhism. If everyone who writes or reads our content, who likes it, helps us to pay for it, our future would be much more secure. Every Contribution Matters, Contribute Generously!

    Become a Supporter      ::     Make a Contribution     



Share This Page