View Single Post
 
Old 12-15-2014, 03:16 AM
dherr dherr is offline Windows 8 Office 2007
Advanced Beginner
 
Join Date: Nov 2014
Location: Austria
Posts: 45
dherr is on a distinguished road
Default

Hi Graham,
your idea was the right one.
I had in the UserForm_initialize this code: Set oDoc = ActiveDocument.
Now I have changed the programm into:
Delete this line of code but insert
Private Sub UserForm_Activate()
If oDoc Is Nothing Then Set oDoc = ActiveDocument
End Sub

Now all is working! Thank you and have a nice Christmas!
Dietrich (from Salzburg)
Reply With Quote