View Single Post
 
Old 04-07-2016, 01:44 AM
AttiCuS AttiCuS is offline Windows 7 32bit Office 2010 32bit
Novice
 
Join Date: Mar 2016
Posts: 6
AttiCuS is on a distinguished road
Default

Hi macropod,

Thank you for your replay. I tried to add simple VBA code, however without any success.

What I want to do is: when I choose 'A' from 'drop_list' then in 'Text1" should appear text: 'xxx'. I used this code:

Sub OnExitCB1B()
If ActiveDocument.drop_list = "A" Then
ActiveDocument.FormFields("Text1").Result = "xxx"
End If
End Sub

But it doesn't work :-(

Could you give an example how could look macro for enabling/disabling formfields?

The case is that I have protected form to be filled. To start filling the template/form we have to choose one option from dropdown list. Then we get an info/text in the formfield below. And what is the most important depend by what we choose from dropdown some section in the document should be enabled/disabled to edit. What you can see each text, like 'Hello' or 'Bye' is added as formfield with disabled fill-in option.

I was thinking also about adding text next to different heading. E.x.: when you choose 'A' from dropdown next to 'Bye" should appear text -'do not fill this section'.

I'm just learning it and for now it is black magic for me ;-) I see that you have large experience in work with MS Word. I would really appreciate if you could show me the road how to solve it.

Regards,
AttiCuS
Attached Files
File Type: docm Form fields.docm (25.3 KB, 15 views)
Reply With Quote