Thanks for the info Jezebel.
> For each pFormField in ActiveDocuments.FormFields
I stared at this for 15 minutes, trying to figure out why is was not
working. Finally realized that ActiveDocuments does not want the 's'.
> You can work around the problem by executing the field properties dialog --
I was not able to get this to work. As provided in your snippet, the code
appears to run OK, but it looks like it makes all the changes to the first
formfield it encounters. I'm pretty sure I ran it exactly as shown, but I may
have somehow broken it on my own. I tried several variations as well as
copy-and-paste yours and could not get anything to work.
I'm still interested in getting the dialog approach to work, but need to
finish the rest of the form. I ended up fixing the formfields that have no
bookmark name manually.
Phil
> There's a bug in Word: you can't (using this method) set the name of a
> formfield if it doesn't have a name to start with; although if it has a name
[quoted text clipped - 42 lines]
> > i = i + 1
> > Loop
Jezebel - 24 Apr 2006 21:57 GMT
The dialog works on whichever formfield is selected at the time.
> Thanks for the info Jezebel.
>
[quoted text clipped - 66 lines]
>> > i = i + 1
>> > Loop
pwrichcreek - 25 Apr 2006 01:43 GMT
Jezebel,
> The dialog works on whichever formfield is selected at the time.
I know. And the pFormField.Select in the code you gave should select each
formfield in the document. Before I ran all of your code I ran just the For
loop with the .Select and observed that each field was in fact selected as
the code ran (the highlighting went from field to field). After I added the
dialogs stuff it no longer advanced from field to field.
I'll start from scratch and try it again.
Thanks,
Phil
> The dialog works on whichever formfield is selected at the time.
>
[quoted text clipped - 68 lines]
> >> > i = i + 1
> >> > Loop
pwrichcreek - 25 Apr 2006 05:35 GMT
Jez,
I tried it all again from scratch and it works fine. No telling what I got
tangled up during my trial-and-error-ing.
Thanks,
Phil
> The dialog works on whichever formfield is selected at the time.
>
[quoted text clipped - 68 lines]
> >> > i = i + 1
> >> > Loop