How to keep selected text highlighted when focus changes in MS Word

Posted on 2014-08-27
Last Modified: 2014-08-27
When I select text Microsoft Word (2003, 2007, 2010) it shows up highlighted. However, when I change focus to another program, the highlighted text is no longer highlighted (until Word is again having focus). Is there a way to change this, i.e. that the selection is visible even then another application or form has focus.
Note, that I don’t wish to resolve this by e.g using VBA WordApl. Activate which would force focus back to Word, and hence make the selection visible.
I’m creating an Word add-in which at some point need to select some text in Word document. However, when user click on the add-in interface form, the selection is not visible, until focus is returned back to Word document, which is bad for me. On the other hand, if you for instance use Word spellchecker, when it finds unknown word and it selects it, the selection is visible even if you currently work with the spellchecker form (i.e. when the spellchecker form has focus); I need to replicate such a behavior, i.e. that the selection in Word is visible event when the user is working with add-ins form…
Question by:npaun
    1 Comment

    Accepted Solution

    ok, I found the solution: the problem is naturally solved by itself, if the add-in is compiled to a .dll which is than used by Word! As long as the add-in in is working in IDE mode, the problem is present, but when compiled, the problem naturally goes away...

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    In case Office 2010 has not been deployed in your environment, this article may be quite useful. In our office, we wanted a way to deploy Microsoft Office Professional Plus 2010 through an automated batch file via logon script. This article is docum…
    Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
    This video walks the viewer through the process of creating envelopes and labels, with multiple names and addresses. Navigate to the “Start Mail Merge” button in the Mailings tab: Follow the step-by-step process until asked to find the address doc…
    This video shows where to find the word count, how to display it, and what it breaks down to in Microsoft Word.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now