denizette
Messages postés5Date d'inscriptionmardi 17 juin 2008StatutMembreDernière intervention25 juin 2008
-
17 juin 2008 à 18:29
bigfish_le vrai
Messages postés1835Date d'inscriptionvendredi 13 mai 2005StatutMembreDernière intervention20 novembre 2013
-
18 juin 2008 à 16:45
je suis en train de faire une macro pouvant faire automatiquement un
graphe selon ce que l'utilisateur a choisi dans les combobox.
la première combobox selectionne les lignes et la deuxième les colonnes = cela fonctionne
mais après pour le code du graphe ça beug à la ligne 4 !!!
si vous pouvez m'aider !!! svp !!!
Sub graphe(ByVal cellule1X As String, ByVal segment As String,
ByVal cellule2X As String, ByVal cellule1Y As String, ByVal cellule2Y
As String, ByVal cellulenom As String)
bigfish_le vrai
Messages postés1835Date d'inscriptionvendredi 13 mai 2005StatutMembreDernière intervention20 novembre 201315 18 juin 2008 à 16:45
Salut,
essais de remplacer :
Set plageX = ActiveSheet.Range(Cells(debut, 3), Cells(fin, 3))
Set PlageP = ActiveSheet.Range(Cells(debut, colonne), Cells(fin, colonne))
par :
With ActiveSheet
Set plageX = .Range(.Cells(debut, 3), .Cells(fin, 3))
Set PlageP = .Range(.Cells(debut, colonne), .Cells(fin, colonne))
End with
Fait gaffe aux points ils sont OBLIGATOIRE ! Ils servent a associer les fonctions range et cells a activesheet via le with