C
cookie57
Guest
Bonjour le forum,
je souhaite créer une macro avec liste de validation, j'utilise l'enregistreur automatique qui m'ecrit le code suivant mais quand je l'execute la macro plante type "application-defined". Y a t'il une explication à cela?
D'avance Merci
Sub Macro()
Range("J8").Select
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="=IF(R[-1]C[-3]<>"""";Maplage;"""")"
.IgnoreBlank = True
.InCellDropdown = True
.InputTitle = ""
.ErrorTitle = ""
.InputMessage = ""
.ErrorMessage = ""
.ShowInput = True
.ShowError = True
End With
End Sub
je souhaite créer une macro avec liste de validation, j'utilise l'enregistreur automatique qui m'ecrit le code suivant mais quand je l'execute la macro plante type "application-defined". Y a t'il une explication à cela?
D'avance Merci
Sub Macro()
Range("J8").Select
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="=IF(R[-1]C[-3]<>"""";Maplage;"""")"
.IgnoreBlank = True
.InCellDropdown = True
.InputTitle = ""
.ErrorTitle = ""
.InputMessage = ""
.ErrorMessage = ""
.ShowInput = True
.ShowError = True
End With
End Sub