petedw
01-18-2006, 07:34 AM
It's probably something really obvious, but what is wrong with the code below??
Im gettin a invalid outside procedure debug error on the 1st line.
Many Thanks
Pete
If ActiveDocument.Bookmarks.Exists("bmBalanceFrom") Then
ActiveDocument.FormFields("bmTotalcr").Result = _
ActiveDocument.FormFields("bmTotalcr").Result _
ActiveDocument.FormFields("bmBalanceFrom").Result
End If
Im gettin a invalid outside procedure debug error on the 1st line.
Many Thanks
Pete
If ActiveDocument.Bookmarks.Exists("bmBalanceFrom") Then
ActiveDocument.FormFields("bmTotalcr").Result = _
ActiveDocument.FormFields("bmTotalcr").Result _
ActiveDocument.FormFields("bmBalanceFrom").Result
End If