A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Macro to remove drop down form fields after complete?



 
 
Thread Tools Display Modes
  #1  
Old April 18th, 2007, 03:58 PM posted to microsoft.public.word.docmanagement
Nabellfl
external usenet poster
 
Posts: 18
Default Macro to remove drop down form fields after complete?

I am creating a Word 2003 form. Is there a macro to remove the drop down
form fields once the user has chosen their answer?
  #2  
Old April 18th, 2007, 04:32 PM posted to microsoft.public.word.docmanagement
Greg Maxey
external usenet poster
 
Posts: 259
Default Macro to remove drop down form fields after complete?

Seems an odd request as a user may wish to change their mind, but the
following macro set to run on exit from each dropdown may suit your
needs:

Sub OnExitDD()
ActiveDocument.Unprotect
Selection.Fields.Unlink
ActiveDocument.Protect wdAllowOnlyFormFields, NoReset:=True
End Sub


On Apr 18, 10:58 am, Nabellfl
wrote:
I am creating a Word 2003 form. Is there a macro to remove the drop down
form fields once the user has chosen their answer?



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.