M
Magnus Olsson
We have old Word templates that were originally written for Word 97.
For each new version, we've updated the templates. Now we'll go from
Word 2003 to Word 2007, and of course there are problems.
The template contains the following code:
Private Sub Document_Open()
On Error Resume Next
If ActiveDocument.Type = wdTypeDocument Then
pAutoOpen.MAIN
dbOpen.MAIN
End If
End Sub
The problem is that the ActiveDocument sometimes gives the error "This
command is not available Because no document is open"
Why? How do I solve it?
For each new version, we've updated the templates. Now we'll go from
Word 2003 to Word 2007, and of course there are problems.
The template contains the following code:
Private Sub Document_Open()
On Error Resume Next
If ActiveDocument.Type = wdTypeDocument Then
pAutoOpen.MAIN
dbOpen.MAIN
End If
End Sub
The problem is that the ActiveDocument sometimes gives the error "This
command is not available Because no document is open"
Why? How do I solve it?