![]() |
#1
|
|||
|
|||
![]()
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. |
#2
|
||||
|
||||
![]()
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 |
#3
|
|||
|
|||
![]()
Works fine, thanks
__________________
Backup your original file before doing any modification. |
![]() |
|
![]() |
||||
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 |
![]() |
JustSayHi | PowerPoint | 3 | 07-16-2016 12:00 AM |
![]() |
mrsjetset | Word VBA | 1 | 06-26-2016 07:41 AM |
![]() |
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 |