If I create a new document with visible set to false, is there anyway of making it visible without re-opening it? I can't find a way of doing it.
Thanks.
doc opened as invisible
-
- Administrator
- Posts: 78647
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: doc opened as invisible
You can use code like this:
Dim doc As Document
Set doc = Documents.Add(Visible:=False)
...
...
doc.ActiveWindow.Visible = True
Dim doc As Document
Set doc = Documents.Add(Visible:=False)
...
...
doc.ActiveWindow.Visible = True
Best wishes,
Hans
Hans
-
- 5StarLounger
- Posts: 656
- Joined: 18 Feb 2010, 14:26
Re: doc opened as invisible
Thanks Hans. But that doesn't work for me. :-(HansV wrote:You can use code like this:
Dim doc As Document
Set doc = Documents.Add(Visible:=False)
...
...
doc.ActiveWindow.Visible = True
EDIT: Perhaps, I spoke too early. Let me try it again.