Bonjour
1. Pour atteindre la date du jour, utilisez ce code
Sub bouton()
Dim col As Integer
col = WorksheetFunction.Match(CLng(Date), Rows("2:2"), 0)
ActiveSheet.Cells(2, col).Select
End Sub
Ensuite dessinez votre bouton et associez-le à ce code
2. Pour les bordures, cela concerne toutes les lignes et colonnes du tableau ?
Donnez un exemple de ce que les personnes font
Crdlt
Edit : Bordures
Essayez avec ce code
Sub bordures()
Dim dlg As Byte
Dim dcl As Integer
dlg = Range("D" & Rows.Count).End(xlUp).Row
dcl = Cells(2, Columns.Count).End(xlToLeft).Column
'Bondures Colonne
With Range(Cells(3, "E"), Cells(dlg, dcl - 1)).Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = xlAutomatic
.Weight = xlThin
End With
'Bordures lignes
For i = 3 To dlg
titre = Range("B" & i + 1)'on verifie que la cellule en ligne suivante de la colonne B a un titre
If Range("D" & i) = "matin" Then 'si matin mentionné
With Range(Cells(i, "D"), Cells(i, dcl)).Borders(xlEdgeBottom)
.LineStyle = xlDash
.ColorIndex = xlAutomatic
.Weight = xlThin
End With
ElseIf titre <> vbNullString Then 'verifie si titre dans colonne B
With Range(Cells(i, "D"), Cells(i, dcl)).Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = xlAutomatic
.Weight = xlThick
End With
Else 'si après midi mentionné
With Range(Cells(i, "D"), Cells(i, dcl)).Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = xlAutomatic
.Weight = xlMedium
End With
End If
Next i
'bordures du tableau
With Range(Cells(3, "B"), Cells(dlg, dcl))
.BorderAround LineStyle:=xlContinuous
.BorderAround ColorIndex:=0
.BorderAround Weight:=xlThick
End With
End Sub
NB : Placez un bouton sur la feuille et associez-le au code Bordure
Rem : attention que vous n'avez pas de titre en B29. Veillez à en mettre un
Crdlt