« Can't find Project or Library » pour les fonctions VBA standard

J’obtiens l’erreur « Can’t find Project or Library » pour des fonctions VBA standards comme Left, Right, Mid, etc.

Ce problème est causé par une référence manquante ou cassée dans votre projet VBA.

Solution :

  1. Ouvrez l’éditeur VBA (Alt+F11)
  2. Outils > Références
  3. Cherchez les références marquées « MANQUANT » (MISSING)
  4. Décochez les références manquantes
  5. Cliquez OK

Si le problème persiste, ajoutez le préfixe VBA. devant les fonctions : VBA.Left(), VBA.Right(), VBA.Mid().