![]() |
#8
|
|||
|
|||
![]()
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) |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Annby | Project | 3 | 11-06-2014 03:38 PM |
VBA Code in a UserForm module to delete a Command Button which opens the userform | Simoninparis | Word VBA | 2 | 09-21-2014 03:50 AM |
![]() |
BoringDavid | Word VBA | 5 | 05-09-2014 09:08 AM |
![]() |
ravl13 | Word | 3 | 11-21-2013 12:31 PM |
Need Help Getting Started, Please. Thanks | ChunkyZergling | Outlook | 1 | 04-24-2009 07:38 AM |