En fait je cherche à augmenter le volume de mon menu déroulant, ce dernier ne va pas chercher tout les postes il s'arrête aux 20 premiers postes.
Je souhaiterai trouver dans le programme ce qui "quantifie" la "matrice" de données liée à ma feuille base de données.
Je vous joint ci dessous mon programme:
Sub Format_ligne_du_DE()
Application.Goto Reference:="Point_insertion"
ActiveCell.Offset(-1, 0).Range("A1").Select
Application.CutCopyMode = False
With Selection.Font
.Name = "Arial"
.FontStyle = "Gras"
.Size = 10
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlNone
.ColorIndex = xlAutomatic
End With
With Selection.Borders(xlLeft)
.Weight = xlMedium
.ColorIndex = xlAutomatic
End With
With Selection.Borders(xlRight)
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
Selection.Borders(xlTop).LineStyle = xlNone
Selection.Borders(xlBottom).LineStyle = xlNone
Selection.BorderAround LineStyle:=xlNone
ActiveCell.Offset(0, 1).Range("A1").Select
With Selection
.HorizontalAlignment = xlGeneral
.VerticalAlignment = xlCenter
.WrapText = True
.Orientation = xlHorizontal
End With
With Selection.Borders(xlLeft)
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
With Selection.Borders(xlRight)
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
Selection.Borders(xlTop).LineStyle = xlNone
Selection.Borders(xlBottom).LineStyle = xlNone
Selection.BorderAround LineStyle:=xlNone
ActiveCell.Offset(0, 1).Range("A1").Select
With Selection.Borders(xlLeft)
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
With Selection.Borders(xlRight)
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
Selection.Borders(xlTop).LineStyle = xlNone
Selection.Borders(xlBottom).LineStyle = xlNone
Selection.BorderAround LineStyle:=xlNone
ActiveCell.Offset(0, 1).Range("A1").Select
Selection.NumberFormat = "# ##0,00_ ;-# ##0,00\ "
With Selection.Borders(xlLeft)
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
With Selection.Borders(xlRight)
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
Selection.Borders(xlTop).LineStyle = xlNone
Selection.Borders(xlBottom).LineStyle = xlNone
Selection.BorderAround LineStyle:=xlNone
ActiveCell.Offset(0, 1).Range("A1").Select
Selection.NumberFormat = "# ##0,00_ ;-# ##0,00\ "
With Selection.Borders(xlLeft)
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
With Selection.Borders(xlRight)
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
Selection.Borders(xlTop).LineStyle = xlNone
Selection.Borders(xlBottom).LineStyle = xlNone
Selection.BorderAround LineStyle:=xlNone
Selection.Style = "Milliers"
ActiveCell.Offset(0, 1).Range("A1").Select
Selection.NumberFormat = "# ##0,00_ ;-# ##0,00\ "
ActiveCell.Offset(0, -2).Range("A1").Select
ActiveCell.Offset(0, -2).Range("A1:E1").Select
Selection.Font.Bold = False
ActiveCell.Offset(0, 2).Range("A1").Select
Application.Goto Reference:="Point_insertion"
ActiveCell.Offset(-1, 0).Range("A1").Select
Selection.Font.Bold = True
ActiveCell.Rows("1:1").EntireRow.EntireRow. _
AutoFit
ActiveCell.Offset(0, 3).Range("A1").Select
End Sub
Voila merci d'avance et n'hésitez pas si je ne suis pas assez clair ...
Yann