Missing toolbars and menub bars

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
 
D

Doug Robbins - Word MVP

Hi Steve,

Might be best if you show us all your code. What you have shown so far
raises a few questions.

Please respond to the newsgroups for the benefit of others who may be
interested.

Hope this helps
Doug Robbins - Word MVP
 
S

Steve

Hi Doug,

Thanks for replying so swiftly. I hbave to be honest
though, I don't think that it would necessarily be
beneficial for me to post all of the code that is going on
in between the point that the doc is merged and then
displayed, and there is a lot.

You said that what you have seen so far raises
questions...what might they be?

Cheers, Steve
 
D

Doug Robbins - Word MVP

Hi Steve,

If you want help and posting the code allows someone to give to you, isn't
that beneficial to you?

The bits of code that you have posted are pretty meaningless given the
problem that you describe.

Please respond to the newsgroups for the benefit of others who may be
interested.

Hope this helps
Doug Robbins - Word MVP
 
S

Steve

Doug,

I think that you mis-understand me. I was not saying that
any help would not be beneficial I was saying that I don't
think that me posting the entirety of the code would be
beneficial to the person looking at the posting.

Perhaps I should re-phrase my question to be how can I
open a document and display it in a window without any
toolbars or menu bars and that way I could smply do the
reverse.

Steve.
 
D

Doug Robbins - Word MVP

Steve,

I most definitely did not misunderstand WHAT YOU SAID.

You said:

I don't think that it would necessarily be
beneficial for me.....

I cannot help you without seeing your code. You'll have to hope that
someone else can.

Please respond to the newsgroups for the benefit of others who may be
interested.

Hope this helps
Doug Robbins - Word MVP
 
D

Denise Z

Geez, you guys. I think poor Steve is just trying to
spare everyone from the numerous pages of code that he's
created.

Steve, it sounds to me like somewhere along the way the
document is opening in the full screen view (see view
menu, full screen). Try inserting the following into your
code after the merged document is on the screen:

ActiveWindow.View.FullScreen = False

Hope this helps.
 
S

steve

Doug,

I have to say that you're taking this a bit seriously.
Look forget it! If trying to get some help from the news
groups ingvolves having to deal pedantic idiots like you
then I'll simply not bother.

This is supposed to be a forum for people of a like mind
and experiance to share knowledge. Not for some
bloodyminded idiot to spout off.
 
D

Doug Robbins - Word MVP

But if it is doing that it must be because of some command in his code.
Better to correct the code in my view.

Please respond to the newsgroups for the benefit of others who may be
interested.

Hope this helps
Doug Robbins - Word MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top