mmtraining
IS-IT--Management
I have got a form field in Word called se2_2a. If I set it to 0 using the line
then I have no problems whatsoever.
If I build the name using a series of loops to get the numbers right and then test to see if the bookmark exists (it does and is found) then I get the problem "is not in the collection" (see below) when the line where I set the result is reached.
It is as if FormFields can't deal with a text variable.
WAAAAAAAGGGHHHH!!!!!!!!!!!!!!!
Any ideas?
Carol
Berlin, Germany
Code:
ActiveDocument.FormFields("se2_2a").Result = 0
If I build the name using a series of loops to get the numbers right and then test to see if the bookmark exists (it does and is found) then I get the problem "is not in the collection" (see below) when the line where I set the result is reached.
It is as if FormFields can't deal with a text variable.
WAAAAAAAGGGHHHH!!!!!!!!!!!!!!!
Code:
Feldnamen1 = "SE" & Aktivitaet & "_" & Aktivitaet2 & "A"
If ActiveDocument.Bookmarks.Exists(Feldnamen1) = True Then
ActiveDocument.FormFields(Feldnamen1).Result = 0
End If
Any ideas?
Carol
Berlin, Germany