Reply
 
Thread Tools Display Modes
  #1   Report Post  
benno
 
Posts: n/a
Default How can I merge a data from excel into WORD 2003 when the document is protected?


Hi,

This is my first post.

I am creating a form for a friend. The upper portion of the form is a
merge data imported from excel. The problem is I can can not import the
data unless the document is unprotected. If I were to unprotect the
document then there is a chance my friend will revise the form which I
do not want to happen.

How can I merge a data from excel into WORD 2003 when the document is
protected? Please help.

Thanks,
Bernie


--
benno
------------------------------------------------------------------------
benno's Profile: http://www.highdots.com/forums/m929
View this thread: http://www.highdots.com/forums/t3007660

  #2   Report Post  
Doug Robbins
 
Posts: n/a
Default

Try using the following macro

Sub MailMergeToDoc()
'
' MailMergeToDoc Macro
' Collects the results of the mail merge in a document
'
Dim mmmdoc As Document
Set mmmdoc = ActiveDocument
If ActiveDocument.ProtectionType = wdAllowOnlyFormFields Then
ActiveDocument.Unprotect
WordBasic.MailMergeToDoc
ActiveDocument.Protect wdAllowOnlyFormFields
mmmdoc.Protect wdAllowOnlyFormFields
End If

End Sub


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
"benno" wrote in message
...

Hi,

This is my first post.

I am creating a form for a friend. The upper portion of the form is a
merge data imported from excel. The problem is I can can not import the
data unless the document is unprotected. If I were to unprotect the
document then there is a chance my friend will revise the form which I
do not want to happen.

How can I merge a data from excel into WORD 2003 when the document is
protected? Please help.

Thanks,
Bernie


--
benno
------------------------------------------------------------------------
benno's Profile: http://www.highdots.com/forums/m929
View this thread: http://www.highdots.com/forums/t3007660



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel data truncated to 255 chars in Word Mail Merge Angie M Mailmerge 0 September 14th 05 04:51 PM
Mail Merge of a Date from Excel Data into Microsoft Word Keith A Microsoft Word Help 2 August 31st 05 05:01 AM
insert Excel data into Word Mail Merge document RRemy Mailmerge 2 June 25th 05 04:52 PM
Merge data in Excel Spreadsheet into a word document Prospect Hospice Mailmerge 1 April 22nd 05 08:31 PM
Excel worksheet in Word linked text boxes Eduardo Oliveira Page Layout 0 January 5th 05 11:23 PM


All times are GMT +1. The time now is 01:38 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"