1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
| ' Création des boutons s'ils ont été supprimés
Public Sub Create_Buttons()
Dim wTab As Worksheet
Set wTab = ThisWorkbook.Sheets(cst_sTab)
With wTab
.Range(wTab.Cells(1, 1), wTab.Cells(1, 256)).RowHeight = 40
Set BtMoteur = .Buttons.Add(.Cells(1, 1).Left, .Cells(1, 1).Top, .Cells(1, 1).Width * 2, 30)
Set BtFiab = .Buttons.Add(.Cells(1, 4).Left, .Cells(1, 4).Top, .Cells(4, 1).Width * 2, 30)
Set BtArret = .Buttons.Add(.Cells(1, 8).Left, .Cells(1, 8).Top, .Cells(4, 1).Width * 2, 30)
End With
With BtMoteur
.Name = "BtMoteur"
.Caption = "Moteur de Recherche"
.OnAction = "BtMoteur_Click"
End With
With BtArret
.Name = "BtArret"
.Caption = "Modification du fichier"
.OnAction = "BtArret_Click"
End With
With BtFiab
.Name = "BtFiab"
.Caption = "Fiabilisation du fichier"
.OnAction = "BtFiab_Click"
End With
wTab.Range("A2").Select
End Sub |
Partager