Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
newuser newuser is offline
external usenet poster
 
Posts: 10
Default selective copying/pasting of forms

Hi:
I am creating a document which will ask users to select a phrase from a
dropdown menu. The user will also need to be able to add that phrase to a
summary section if he/she chooses to (maybe by selecting a checkbox); if the
box is
checked the phrase will be copied if not the phrase will only be in the
dropdown.
I have been able to copy and paste the selected phrase to the Summary
section of my doculment automatically by placing a REF field in the summary
section that points to the dropdown, however I cannot figure out how to allow
the user to decide if they want to add it or not.

  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default selective copying/pasting of forms

I assume that this is a protected form?
Add a checkbox field (Check1)
Run on exit from a dropdown field (Dropdown1) the following macro will
insert (or not) the content of the dropdown field in a form field (Text1)
according to the setting of the check box field (Check1). Put the form field
(Text1) in your summary.
Rename the fields to suit your requirements:

Sub OnExitDD1()
Dim oFld As FormFields
Dim sRes As String
Set oFld = ActiveDocument.FormFields
If oFld("Check1").Result = True Then
sRes = oFld("DropDown1").Result
Else
sRes = ""
End If
oFld("Text1").Result = sRes
End Sub

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

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



Newuser wrote:
Hi:
I am creating a document which will ask users to select a phrase from
a dropdown menu. The user will also need to be able to add that
phrase to a summary section if he/she chooses to (maybe by selecting
a checkbox); if the box is
checked the phrase will be copied if not the phrase will only be in
the dropdown.
I have been able to copy and paste the selected phrase to the Summary
section of my doculment automatically by placing a REF field in the
summary section that points to the dropdown, however I cannot figure
out how to allow the user to decide if they want to add it or not.



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
HELP copying and pasting tables from one doc to another Romain Cooper Tables 3 August 7th 05 05:02 PM
HELP copying and pasting tables from one doc to another Romain Cooper Tables 0 August 5th 05 04:29 PM
copying and pasting Anthony - copy/paste help Microsoft Word Help 0 April 6th 05 02:05 AM
Copying and pasting Linda Microsoft Word Help 6 December 27th 04 05:14 PM
Copying/Pasting formatting V-ger Microsoft Word Help 3 December 8th 04 11:17 PM


All times are GMT +1. The time now is 02:24 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"