Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-17-2017, 04:03 PM
eduzs eduzs is offline Show a hidden document window. Windows 10 Show a hidden document window. Office 2010 32bit
Expert
Show a hidden document window.
 
Join Date: May 2017
Posts: 266
eduzs is on a distinguished road
Default Show a hidden document window.

I was able to open hidding or hide a document with commands like:


documents.open ..., visible:=false
activedocument.activewindow.visible=false
BUT, I was unable to show again the document, nothing works:
activedocument.activewindow.visible=true
etc.
__________________
Backup your original file before doing any modification.
Reply With Quote
  #2  
Old 07-17-2017, 09:19 PM
gmayor's Avatar
gmayor gmayor is offline Show a hidden document window. Windows 10 Show a hidden document window. Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,137
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 ofgmayor has much to be proud of
Default

Assign a variable name to the document e.g.
Code:
Dim oDoc As Document
    Set oDoc = Documents.Open(FileName:="C:\Path\Example.docx", Visible:=False)
    MsgBox oDoc.Name & " is not visible"
    oDoc.ActiveWindow.Visible = True
    MsgBox oDoc.Name & " is visible"
__________________
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 07-18-2017, 05:04 PM
eduzs eduzs is offline Show a hidden document window. Windows 10 Show a hidden document window. Office 2010 32bit
Expert
Show a hidden document window.
 
Join Date: May 2017
Posts: 266
eduzs is on a distinguished road
Default

Works fine, thanks
__________________
Backup your original file before doing any modification.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Change Working Time window won't show all shifts CLGarvock Project 1 06-05-2017 04:26 PM
Show a hidden document window. How to show hidden objects/images on slide show JustSayHi PowerPoint 3 07-16-2016 12:00 AM
Show a hidden document window. Top of my VBA code window is hidden and I can't seem to move it mrsjetset Word VBA 1 06-26-2016 07:41 AM
Show a hidden document window. Show complete file name in document window stardog Word 1 06-03-2016 03:41 PM
Hidden Fonts Still Show in Office Dropdown Font Menus stlsailor Word 0 07-13-2013 06:59 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:23 PM.


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