FORUM Tom's Hardware » Programmation » VB / VBA / VBS » erreur : "bibliothèque introuvable"
 

erreur : "bibliothèque introuvable"

Il y a 265 utilisateurs connus et inconnus. Pour voir la liste des connectés connus, cliquez ici
Ajouter une réponse



 Mot :   Pseudo :  
 
Bas de page
Auteur
 Sujet : erreur : "bibliothèque introuvable"
 
Plus d'informations

Bonsoir,
 
J'ai crée une macro sous excel 97. Cette dernière marchait parfaitement. Mais lorsque je passe sur une version supérieur d'EXCEL, j'obtient une erreur.
 
En effet, j'utilise la fonction Mid(string, start[, length]).
Elle marchait très bien sous 97, mais avec Excel XP et 2003, un message d'erreur apparait :" Projet ou bibliothèque introuvable".
 
Je ne sais pas comment faire pour résoudre ce problème?
 

Code :
  1. Sub création_listing_fiches()
  2.     Dim fiche As New Collection
  3.     Dim rub As New rubrique
  4.     Dim b As Range, c As Range
  5.     Dim num As Integer
  6.     Dim t As String
  7.     'initialisation du listing
  8.     For num = 1 To listing_fiches.Count
  9.         listing_fiches.Remove (1)
  10.     Next num
  11.     'initialisation de b à la première fiche
  12.     Set b = Worksheets("index" ).Range("Numero_fiche" ).Offset(1, 0)
  13.     Do While Not (b.Value = "" )
  14.         Set c = Worksheets("index" ).Range("Numero_fiche" )
  15.         'initialisation de la fiche
  16.         Set fiche = Nothing
  17.         Do While Not (c.Value = "" )
  18.             Set rub = Nothing
  19.             rub.Nom = c.text
  20.             t = Mid(c.Name.Name, 7)
  21.             Set rub.position = Range(t)
  22.             Set rub.contenu = Worksheets("index" ).Cells(b.Row, c.Column)
  23.             fiche.Add rub, rub.Nom
  24.             Set c = c.Offset(0, 1)
  25.         Loop
  26.         listing_fiches.Add fiche
  27.         Set b = b.Offset(1, 0)
  28.     Loop
  29. End Sub

zeb
Profil : Modérateur libre
Plus d'informations

Problème de référence : Ajoute VBA dans la liste des références

Plus d'informations

je ne sais pas comment accéder à la liste des références, j'ai beau chercher dans l'aide il n'est pas mentionné comment ouvrir cette liste, et je ne la trouve pas dans les menus affichage, édition....

zeb
Profil : Modérateur libre
Plus d'informations

Microsoft Visual Basic Editeur / Outils / Références  :sarcastic:

Plus d'informations

Ok merci beaucoup.
En fait c'était une bibliothèque Matlab qui éxistait sur mon ancien pc et par sur le nouveau, qui générait des conflits.
Je l'ai enlevé et tout marche correctement.
encore merci

zeb
Profil : Modérateur libre
Plus d'informations

:jap:


Aller à :
Ajouter une réponse
  FORUM Tom's Hardware » Programmation » VB / VBA / VBS » erreur : "bibliothèque introuvable"
 

Annonces Google
Publicité
Les téléchargements