Runtime error 438

DENAVAUT Fabien 1 Reputation point
2022-06-15T15:40:57.227+00:00

[FR]
Bonjour,
nous rencontrons l'erreur 438 lors de l'exécution d'une fonction d'appel de macro.
Nous avons 2 macros.
La première est directement dans le document que l'on ouvre et s'exécute à l'ouverture.
Cette macro ajoute une macro (macro2) dans les addins de Word si celle ci n'est pas présente via 'Application.AddIns(l_strAddinName)'.
Macro2 est dans le répertoire %APPDATA%/Microsoft/Word/STARTUP.
Depuis la macro1 on essaie d'appeler une méthode de macro2 avec la méthode 'Call Application.Run methodToCall'
C'est à ce moment que l'erreur se produit.

Depuis fin avril 2022, début mai 2022 on rencontre cette erreur de plus en plus fréquemment quelque soit la version de Word.
L'erreur ne se produit que lors de la création du premier document.

Quelqu'un a-t-il déjà rencontré ce genre de problème ?

[EN]
Hello,
we encounter error 438 when executing a macro call function.
We have 2 macros.
The first is directly in the opened document and runs on start.
This macro adds another macro (macro2) in the Word's addins if this one is not present via 'Application.AddIns(l_strAddinName)'.
Macro2 is in the %APPDATA%/Microsoft/Word/STARTUP directory.
From the first macro we try to call a method of macro2 with the method 'Call Application.Run methodToCall'
This is when the error occurs.

Since the end of April 2022, beginning of May 2022, this error has been encountered more and more frequently, regardless of the version of Word.
The error only occurs when creating the first document.

Has anyone ever encountered this kind of problem?

0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.