Fill-In removes toolbars

J

jcook

Hi all. I have a Word 2003 mail merge document that has a FILLIN
field in it. The FILLIN works fine but the output document has no
menu or toolbars at all. This means I can't print, save, format,
etc. If I take out the FILLIN I get them.

Any help?

Rgds,
Jaime
 
P

Peter Jamieson

If these merges are being run by automating Word, I've read that you may
need to issue .Activate on the Window (and possibly set .Visible to True -
the ssequence may be significant).

Otherwise, no clues, sorry.

Peter Jamieson
 
E

Ed

Hi Peter,

We have a program our customers use which automates Word to perform mail
merges and over time two problems surfaced; one was that sometimes after the
merge the menu bar and toolbars would be missing, and the other was that
sometimes the menu bar and toolbars would be there but would be inactive
until Word's window state was changed (e.g. by minimising and maximising
Word).

The problem of the missing toolbars seemed to happen if Word "thought" the
merge had been interrupted - possibly by some types of error, or by fill-in
fields.

In our code we set the .Visible property of the application object to true
before starting the merge to get around that.

We used the .Activate method of the application object to get around the
problem of the inactive toolbars.

I didn't write the code but I've just read through it and the order that we
used is:
Set the app visible.
Activate the app.
Perform the merge (and maybe do other stuff).
Activate the app.

Not sure if both activations are necessary or whether this was "belt and
braces".

Regards.

Ed
 
E

Ed

Hello again,

I should have been a bit clearer about when the menu bar and toolbars would
go missing. This would only happen with an "interruption" to the merge when
Word was not yet visible. If Word was already visible we would not get the
problem.

Cheers.

Ed
 
P

Peter Jamieson

Hi Ed,

Thanks,

Peter Jamieson
Ed said:
Hi Peter,

We have a program our customers use which automates Word to perform mail
merges and over time two problems surfaced; one was that sometimes after
the
merge the menu bar and toolbars would be missing, and the other was that
sometimes the menu bar and toolbars would be there but would be inactive
until Word's window state was changed (e.g. by minimising and maximising
Word).

The problem of the missing toolbars seemed to happen if Word "thought" the
merge had been interrupted - possibly by some types of error, or by
fill-in
fields.

In our code we set the .Visible property of the application object to true
before starting the merge to get around that.

We used the .Activate method of the application object to get around the
problem of the inactive toolbars.

I didn't write the code but I've just read through it and the order that
we
used is:
Set the app visible.
Activate the app.
Perform the merge (and maybe do other stuff).
Activate the app.

Not sure if both activations are necessary or whether this was "belt and
braces".

Regards.

Ed
 

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

Top