
Signature
Greg Maxey/Word MVP
A Peer in Peer to Peer Support
> PS. I copied the code out of your scratchmacro and inserted it right
> at the end of my AutoNew() macro.
[quoted text clipped - 3 lines]
>> is, then to reduce the font of all those bookmarks to 10 point so it
>> will fit in the allotted space in my form. Thanks, charlie
GREAT!!! This worked. However, I need to update only a specific field with
the name {LOCATION}, but this changed other fields, too. How do I change
this code to do only the field {location}? many thanks, charlie
> Charlie,
>
[quoted text clipped - 19 lines]
> >> is, then to reduce the font of all those bookmarks to 10 point so it
> >> will fit in the allotted space in my form. Thanks, charlie
Greg Maxey - 08 Jan 2005 19:01 GMT
Charlie,
What have your tried?
Try:
Sub ScratchMacro()
Dim oFld As Field
For Each oFld In ActiveDocument.Fields
If oFld.Type = wdFieldRef Then
If InStr(oFld.Code.Text, "Location") Then
If InStr(oFld.Result.Text, Chr(11)) > 0 Then
oFld.Result.Font.Size = 10
End If
End If
End If
Next oFld
End Sub

Signature
Greg Maxey/Word MVP
A Peer in Peer to Peer Support
> GREAT!!! This worked. However, I need to update only a specific
> field with the name {LOCATION}, but this changed other fields, too.
[quoted text clipped - 28 lines]
>>>> is, then to reduce the font of all those bookmarks to 10 point so
>>>> it will fit in the allotted space in my form. Thanks, charlie
Charlie - 12 Jan 2005 17:19 GMT
Many Many thanks, Greg
ps. is there some kind of help file download that would help me with basic
word programming that would have lots of examples? The built in help file
seems limited... Thanks, Chalrie
> Charlie,
>
[quoted text clipped - 48 lines]
> >>>> is, then to reduce the font of all those bookmarks to 10 point so
> >>>> it will fit in the allotted space in my form. Thanks, charlie
Greg - 12 Jan 2005 19:06 GMT
Charlie,
I am not aware of anything like that. Glad I was able to help.
Greg Maxey - 09 Jan 2005 02:16 GMT
or
Sub ScratchMacro()
Dim oFld As Field
For Each oFld In ActiveDocument.Fields
If InStr(oFld.Code.Text, "Location") _
And InStr(oFld.Result.Text, Chr(11)) > 0 Then
oFld.Result.Font.Size = 10
End If
Next oFld
End Sub

Signature
Greg Maxey/Word MVP
A Peer in Peer to Peer Support
> GREAT!!! This worked. However, I need to update only a specific
> field with the name {LOCATION}, but this changed other fields, too.
[quoted text clipped - 28 lines]
>>>> is, then to reduce the font of all those bookmarks to 10 point so
>>>> it will fit in the allotted space in my form. Thanks, charlie