Excel 2007 & macro
la fouine25
Messages postés
2
Statut
Membre
-
la fouine25 Messages postés 2 Statut Membre -
la fouine25 Messages postés 2 Statut Membre -
Bonjour,
J'ai un souci avec une macro qui ne fonctionne pas.
Je veux changer un clpiart en fonction d'une cellule.
Voici ma macro :
Private Sub Worksheet_Change(ByVal zz As Range)
If zz.Address = "$C$2" Then
Application.EnableEvents = False
x = "Photos!" & [address(match(C2,basenom,0)+1,column(photos))]
With Sheets("recherche")
.Shapes("ImageLiée4").Select
Selection.Formula = x
End With
[A1].Select
Application.EnableEvents = True
End If
If zz.Address = "$C$2" Then
Application.EnableEvents = False
x = "GPT!" & [address(match(B17,gpts,0)+1,column(pucelles))]
With Sheets("recherche")
.Shapes("ImageLiée3").Select
Selection.Formula = x
End With
[A1].Select
Application.EnableEvents = True
End If
End Sub
Le bug intervient au niveau de "Selection.Formula = x"
Merci pour votre aide
J'ai un souci avec une macro qui ne fonctionne pas.
Je veux changer un clpiart en fonction d'une cellule.
Voici ma macro :
Private Sub Worksheet_Change(ByVal zz As Range)
If zz.Address = "$C$2" Then
Application.EnableEvents = False
x = "Photos!" & [address(match(C2,basenom,0)+1,column(photos))]
With Sheets("recherche")
.Shapes("ImageLiée4").Select
Selection.Formula = x
End With
[A1].Select
Application.EnableEvents = True
End If
If zz.Address = "$C$2" Then
Application.EnableEvents = False
x = "GPT!" & [address(match(B17,gpts,0)+1,column(pucelles))]
With Sheets("recherche")
.Shapes("ImageLiée3").Select
Selection.Formula = x
End With
[A1].Select
Application.EnableEvents = True
End If
End Sub
Le bug intervient au niveau de "Selection.Formula = x"
Merci pour votre aide
A voir également:
- Excel 2007 & macro
- Telecharger macro convertir chiffre en lettre excel - Télécharger - Tableur
- Save as pdf office 2007 - Télécharger - Bureautique
- Liste déroulante excel - Guide
- Word et excel gratuit - Guide
- Si ou excel - Guide
Ce ne serait pas ma macro qui est en cause mais autre chose... C'est ce problème que je voudrais éclaircir.