doc opened as invisible

Robie
5StarLounger
Posts: 656
Joined: 18 Feb 2010, 14:26

doc opened as invisible

Post by Robie »

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.

User avatar
HansV
Administrator
Posts: 78500
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: doc opened as invisible

Post by HansV »

You can use code like this:

Dim doc As Document
Set doc = Documents.Add(Visible:=False)
...
...
doc.ActiveWindow.Visible = True
Best wishes,
Hans

Robie
5StarLounger
Posts: 656
Joined: 18 Feb 2010, 14:26

Re: doc opened as invisible

Post by Robie »

HansV wrote:You can use code like this:

Dim doc As Document
Set doc = Documents.Add(Visible:=False)
...
...
doc.ActiveWindow.Visible = True
Thanks Hans. But that doesn't work for me. :-(

EDIT: Perhaps, I spoke too early. Let me try it again.