<p>I am changing document template macros. The one thing I can't find out how to do is to customize error messages. For example an error message in a document is</p>

<p>"Error! No table of figures entries found"</p>

<p>I would like to change this to display something else. Is it possible to do this with Word VBA or VBScript?</p>

If you want to trap a specific error type in VBA, one method is to use On Error Resume Next then test for an error message on the line following the action to trap, e.g.:
```
```
On Error Resume Next
' try action
If Err.Number <> 0 Then
  ' handle w/ custom message
  Err.Clear
End If
```
```
If you know the exact error number (
```
If Err.Number = N Then
```
), that would be better of course.