Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-27-2022, 10:26 AM
coffent coffent is offline Newly-created document does not get focus Windows 10 Newly-created document does not get focus Office 2019
Advanced Beginner
Newly-created document does not get focus
 
Join Date: Dec 2019
Posts: 40
coffent is on a distinguished road
Default Newly-created document does not get focus


When I enter the following keystrokes in Word:
<alt>F..............File menu
N.................... New document
M2.................. Word's reference number for a template I created
it brings up a new document based on the "M2" template, exactly as desired. Up until today, that document had the focus. If I started typing, the keystrokes would be entered into the new document. As of today, however, the newly-created document usually does not have the focus. Typing is not entered into the new document (nor any other place), even though there is a blinking cursor in the document. Clicking on the new document brings the focus to it, and from then on everything is fine. Occasionally the new document has the focus without clicking on it, but most of the time not.

The problem is I've written a macro to simulate the keystrokes. The macro creates the new document correctly, but when it goes to paste text into it, nothing happens because the new document doesn't have focus.

Is there some Windows or Word parameter that I could have changed inadvertently that would cause this lack of focus? Why would it work for years, then suddenly (most, but not all of the time) change behavior? Thanks for any ideas!
Reply With Quote
  #2  
Old 08-27-2022, 05:43 PM
coffent coffent is offline Newly-created document does not get focus Windows 10 Newly-created document does not get focus Office 2019
Advanced Beginner
Newly-created document does not get focus
 
Join Date: Dec 2019
Posts: 40
coffent is on a distinguished road
Default Update

This problem occurred on my desktop computer and continued through several reboots, I tried the same thing on my laptop and it worked fine. Now I've come back to my desktop and it's suddenly working there again as well (no rebooting in the interim). No idea why the problem seems to come and go without cause.
Reply With Quote
Reply

Tags
focus, new document



Similar Threads
Thread Thread Starter Forum Replies Last Post
Focus a new Document and bring it in the foreground f__s Word VBA 0 04-27-2020 03:36 PM
Newly-created document does not get focus Get path of newly opened word document MANOHAR Word 2 04-12-2017 06:07 AM
Newly-created document does not get focus how keep word document highlighted when switching focus to another application? dylansmith Word 4 05-08-2013 01:21 AM
Newly-created document does not get focus Show userform without losing document focus? Or other method to get a graphic to pop? AlexR Word VBA 7 03-31-2013 12:17 PM
Newly-created document does not get focus Setting focus to specific word document from UserForm SaneMan Word VBA 5 04-01-2011 03:11 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:35 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft