M
mec94
Guest
Bonjour tout le monde,
Voilà j'ai crée un nom de donnée en vba comme cela :
ActiveWorkbook.Names.Add Name:="Liste" & j, RefersTo:="=offset(choix2,1,match(Cells(" & j & ", " & k &
"),choix1,0)-1,counta(offset(choix2,,match(Cells(" & j & ", " & k &
"),choix1,0)-1))-1)"
le resultat :
Liste12=DECALER(choix2;1;EQUIV(Cells(12;
3);choix1;0)-1;NBVAL(DECALER(choix2;;EQUIV(Cells(12; 3);choix1;0)-1))-1)
toutes les virgules sont des points virgules.
Comment faire pour que les virgules reste des virgules et est ce que c'est pour cela que plus loin mon add plante ? :
Cells(j, Col).Select
With Selection.Validation
.Delete
.Add Type:=xlValidateList, Formula1:="=Liste" & j
End With
Merci pour votre aide
Voilà j'ai crée un nom de donnée en vba comme cela :
ActiveWorkbook.Names.Add Name:="Liste" & j, RefersTo:="=offset(choix2,1,match(Cells(" & j & ", " & k &
"),choix1,0)-1,counta(offset(choix2,,match(Cells(" & j & ", " & k &
"),choix1,0)-1))-1)"
le resultat :
Liste12=DECALER(choix2;1;EQUIV(Cells(12;
3);choix1;0)-1;NBVAL(DECALER(choix2;;EQUIV(Cells(12; 3);choix1;0)-1))-1)
toutes les virgules sont des points virgules.
Comment faire pour que les virgules reste des virgules et est ce que c'est pour cela que plus loin mon add plante ? :
Cells(j, Col).Select
With Selection.Validation
.Delete
.Add Type:=xlValidateList, Formula1:="=Liste" & j
End With
Merci pour votre aide