Pasting in form

  • Thread starter Thread starter Mary W
  • Start date Start date
M

Mary W

I have created a new form in Word 2007 and have locked it. The problem is
that information from other documents cannot be pasted into the text
controls. Hopefully someone knows how to set the form so that can be done.
Appreciate it.
 
You would have to use a macro to unlock the form, paste the information then
lock the form again.
Add the following macro to a button on the QAT. Insert the poassword (if
any) where indicated.

Sub PasteintoForm()
Dim i As Integer
Dim bProtected As Boolean

'Unprotect the file
If ActiveDocument.ProtectionType <> wdNoProtection Then
bProtected = True
ActiveDocument.Unprotect Password:=""

End If

Selection.Paste

'Reprotect the document.
If bProtected = True Then
ActiveDocument.Protect _
Type:=wdAllowOnlyFormFields, NoReset:=True, Password:=""
End If

End Sub

http://www.gmayor.com/installing_macro.htm

or you could use legacy text form fields which will accept pasted
information.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
Unfortunately this is a known issue. (It sure would be nice if they'd fix
it!) How much protection do you need in your form? Do you need to use a
password to protect it? If not you can use another means to protect the
boilerplate and the content controls and only allow modifications to be made
in the content controls. This method is for preventing accidental changes
since savvy users would be able to make modifications if they really wanted
to make them. (They'd need to be pretty savvy, though. ;-) )

Here's what you need to do:

- In the Properties of each content control select "Content control cannot
be deleted".
- Select the entire document and then click the Rich Text content control
(make sure your insertion point is isn't placed in another content control
before clicking Properties).
- In the Properties of the newly added Rich text content control, select
"Control cannot be deleted" and "Control cannot be edited".

That's it! Your form is protected and only the content controls that can be
edited can be used. If you need to modify the form, such as delete a content
control, then you need to click Design Mode on the Developer tab. You can
also restrict formatting if necessary using the Protect Document
functionality.

~~~~~~~~~~~~~~~
Beth Melton
Microsoft Office MVP
https://mvp.support.microsoft.com/profile/Melton
What is a Microsoft MVP? http://mvp.support.microsoft.com/gp/mvpfaqs

Guides for the Office 2007 Interface:
http://office.microsoft.com/en-us/training/HA102295841033.aspx
 

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

Back
Top