trying to embed a doc in a word template

L

lew berish

I have inherited a template with macros that we use on a
daily basis.
It is in word 2000 and the problem is when someone wants
to embed a document in the template. The template will
not let the user to do this. If they turn
Protection 'off', it accepts the embed, but when they turn
the Protection 'on' the embed disappears.
How do I fix it so they can embed objects in a template,
preferably without turning Protection on/off?
Thanks,
Lew
 
C

Cindy Meister -WordMVP-

Hi Lew,

Why should users need to embed anything on a regular basis
into a template? Into documents created from a particular
template would make more sense...

Which VIEW are people working in, when they try this? Have
you tried inserting a couple of section breaks, and
unprotecting the section where the embedded document should
be?

Why would you embed the document, and not use Insert/File?

Are they trying to embed or insert into a form field?
I have inherited a template with macros that we use on a
daily basis.
It is in word 2000 and the problem is when someone wants
to embed a document in the template. The template will
not let the user to do this. If they turn
Protection 'off', it accepts the embed, but when they turn
the Protection 'on' the embed disappears.
How do I fix it so they can embed objects in a template,
preferably without turning Protection on/off?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jan
24 2003)
http://www.mvps.org/word

This reply is posted in the Newsgroup; please post any follow
question or reply in the newsgroup and not by e-mail :)
 
L

Lew Berish

Cindy,
Why should users need to embed anything on a regular
basis
into a template? Into documents created from a particular
template would make more sense...

You are correct, this is what we do. I maintain the
template and the rest of the team uses it as a document.
Which VIEW are people working in, when they try this?

I would imagine they are working from the Print Layout view
Have you tried inserting a couple of section breaks, and
unprotecting the section where the embedded document
should be?

Yes, this helps. (Thank you for this insight, it really
did help.) We can 'cut and paste', but still can't
insert/embed a whole Word or Excel document without it
expanding.
Why would you embed the document, and not use Insert/File?
My ignorance is showing, how is that different?
Are they trying to embed or insert into a form field?
To save time/effort from having to recopy into a field. A
description field may have a supporting document and it is
easier to include the original document/spreadsheet than
retype.

Thank you again for replying. This did help get us over a
hurdle.
If I confused you, please let me know.
Lew
 
C

Cindy Meister -WordMVP-

Hi Lew,
We can 'cut and paste', but still can't
insert/embed a whole Word or Excel document without it
expanding.

My ignorance is showing, how is that different?
You "embed" something via the Insert/Object menu, and this
essnetially inserts a graphical object (when you click on it,
you get "handles" around the outside, as with an picture).
What you can do with graphical objects in a form, even in an
unprotected section, is limited.

If you copy/paste from an Excel sheet or another Word
document, you aren't embedding, you're "inserting". And
usually Word will treat the result like part of its own
document text. This means the user should be able to work
with it without too many problems, in an unprotected section.
To save time/effort from having to recopy into a field. A
description field may have a supporting document and it is
easier to include the original document/spreadsheet than
retype.
OK, let's see if I understand, now:
- you have a document protected as a form, with text form
fields
- the users would like to insert text from existing files
into these form fields. And they'd like to use Insert/File, I
take it?
- they'd also like to insert spreadsheet tables? Form fields
won't accept these at all, when protected

For insert/file, you could use macro code that basically:
- unprotects
- displays the Insert/File dialog box so the user can select
- reprotects

You'll find the basic unprotect/reprotect code you need on my
website. For the other, try:

Dialogs(wdDialogInsertFile).Show

Note, however, that the user will have to type SOMETHING into
the form field, then have the cursor blinking, otherwise
they're likely to delete the form field when inserting.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jan
24 2003)
http://www.mvps.org/word

This reply is posted in the Newsgroup; please post any follow
question or reply in the newsgroup and not by e-mail :)
 
L

Lew Berish

Ciny,
thanks for the help.
i think this will do it for me. as always, something has
come up and it'll be until next week that i get to it.

Thanks for your time and the refernce to some code on your
website.
Lew
 

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