![]() |
|
#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. |
|
#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
|
|
|
|
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 |
How to show hidden objects/images on slide show
|
JustSayHi | PowerPoint | 3 | 07-16-2016 12:00 AM |
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 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 |