Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-07-2018, 02:53 PM
qtutorm qtutorm is offline Word window empty when opened minimized while Visible is False Windows 7 64bit Word window empty when opened minimized while Visible is False Office 2016
Novice
Word window empty when opened minimized while Visible is False
 
Join Date: Oct 2018
Posts: 2
qtutorm is on a distinguished road
Default Word window empty when opened minimized while Visible is False

I want to open a new or existing document minimized without any flash on screen, so I open it with Visibility set False.



If the WindowState is set Minimized (or Maximized) while it is not Visible and then set it Visible, the window is completely blank (without ribbon or document).

The window is fine if it matches the ActiveWindow's WindowState (if a Maximized window opens and sets a window to wxWindowStateNormal while not Visible it is also blank).

Why is this happening and how can I fix it? Word 2016

Quote:
Sub ProblemWindow()

ActiveWindow.WindowState = wxWindowStateNormal
Set myDoc = Documents.Add(Visible:=False)
'if myDoc's WindowState doesn't match ActiveWindow's the window is empty when set Visible
'myDoc.ActiveWindow.WindowState = wdWindowStateNormal
'myDoc.ActiveWindow.WindowState = wdWindowStateMaximize
myDoc.ActiveWindow.WindowState = wdWindowStateMinimize
myDoc.ActiveWindow.Visible = True

End Sub
Reply With Quote
  #2  
Old 10-07-2018, 08:54 PM
gmayor's Avatar
gmayor gmayor is offline Word window empty when opened minimized while Visible is False Windows 10 Word window empty when opened minimized while Visible is False Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,101
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

See https://www.howtogeek.com/104448/how...el-powerpoint/
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
  #3  
Old 10-08-2018, 09:10 AM
qtutorm qtutorm is offline Word window empty when opened minimized while Visible is False Windows 7 64bit Word window empty when opened minimized while Visible is False Office 2016
Novice
Word window empty when opened minimized while Visible is False
 
Join Date: Oct 2018
Posts: 2
qtutorm is on a distinguished road
Default

The splash screen isn't the issue. The "flash" is the minimization animation. I want to silently open many documents it. (or the animation from normal to maximized)



Try the script to see the resulting empty window that can't be used. (it is completely blank on windows 7)
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I stop all minimized windows from opening blueman2 Word 12 08-22-2019 06:19 AM
Word window empty when opened minimized while Visible is False False fonts in word peterv Word 5 07-19-2012 02:11 AM
Apparently empty (blank) cells aren't empty daymaker Excel 3 03-08-2012 03:41 PM
Change text in minimized icons horseatingweeds Office 0 02-27-2011 05:32 PM
Word window empty when opened minimized while Visible is False Run Excel file with Powerpoint minimized agios59 PowerPoint 1 11-16-2010 08:58 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:06 PM.


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