S
Steve
Hi All,
I have a macro written in VBA that opens a document, does
a mailmerge and then displays the resulting document to
screen.
The problem is that when the document is displayed there
are no toolbars and no menu bars. I assume that there is
something fundamental that I have not done. Anyone with
any ideas?
The code below shows the basic steps that are in place,
obviously this is not everything that happens.
Documents.Open FileName:=DocDir$ + DocName$, _
ConfirmConversions:=False, _
ReadOnly:=True, _
AddToRecentFiles:=False, _
PasswordDocument:="", _
PasswordTemplate:="", _
Revert:=False, _
WritePasswordDocument:="", _
WritePasswordTemplate:="", _
Visible:=False
Documents(MainDoc$).MailMerge.Execute
Documents(documentNameToClose).ActiveWindow.WindowState =
wdWindowStateMaximize
Thanks in advance, Steve
I have a macro written in VBA that opens a document, does
a mailmerge and then displays the resulting document to
screen.
The problem is that when the document is displayed there
are no toolbars and no menu bars. I assume that there is
something fundamental that I have not done. Anyone with
any ideas?
The code below shows the basic steps that are in place,
obviously this is not everything that happens.
Documents.Open FileName:=DocDir$ + DocName$, _
ConfirmConversions:=False, _
ReadOnly:=True, _
AddToRecentFiles:=False, _
PasswordDocument:="", _
PasswordTemplate:="", _
Revert:=False, _
WritePasswordDocument:="", _
WritePasswordTemplate:="", _
Visible:=False
Documents(MainDoc$).MailMerge.Execute
Documents(documentNameToClose).ActiveWindow.WindowState =
wdWindowStateMaximize
Thanks in advance, Steve