j0j0
Goto Top

Normail.dot VBA (Save error)

Ein kleines, trotzdem ärgerliches Problem mit der Normal.dot.
Das Problem tritt auf wenn eine zweite Word instance aus VBA herraus gestartet wird.
MS überprüft anscheinend bei einem Userstart nach einer vorhandenen Instance.
In VBA passiert das nicht. Zum Glück!
Trotzdem meckert Word darüber. das er die Normal.dot nochmals abspeichern möchte.
Der text ist aus einer Email Conversation und ich werde ihn nicht weiter bearbeiten.
Steht alles drin was ihr braucht! ;)

Viel Spass

Hi,

Following error occurs g:

Word returns an error that the normal.dot ist not possible
to save.

What happens:
Open the word document with a new(second) word instance
with "Set g_msWord = WScript.CreateObject("Word.Application", "WordApp_")"
next to the sill existing word instance.
In this moment 2 different word instances try to change/access the
normal.dot simultaneously.

You find this problem on the following Microsoft page:

http://support.microsoft.com/kb/285885/en-us

This causes a lot of trouble with the USERS.

I was testing the "EditWordDocument.vbs" here and found when
you add the following line

g_msWord.NormalTemplate.Saved = True

in front of every command line where the script saves the word document:

g_msWord.Documents.Save

and

g_msWord.Quit True ' Quit word; prompt to save changes.

will actually solve this issue.


'---- Solution ------------------------------------

http://support.microsoft.com/kb/285885/en-us


If Not g_quitWord Then
g_msWord.NormalTemplate.Saved = True
g_msWord.Quit True ' Quit word; prompt to save changes.
End If


So long.... Viel Erfolg! face-smile

Content-Key: 121123

Url: https://administrator.de/contentid/121123

Printed on: April 23, 2024 at 20:04 o'clock