Bonjour à tous,
J'ai une macro dans un fichier excel qui fonctionne très bien sur mon pc et qui met plein d'erreur quand on l'ouvre sur Mac
Quelqu'un peut il me dire pourquoi ?
Ci-après le code en question :
Option Explicit
Private Sub Worksheet_Activate()
Dim lig As Long, idc As Long, idl As Long, col As Long, tbd
Cells(2, 4).Resize(UsedRange.Rows.Count, UsedRange.Columns.Count).ClearContents
Application.ScreenUpdating = False
tbd = [Coaches].Value
For lig = 2 To Cells(Rows.Count, 1).End(xlUp).Row
col = 3
For idl = 1 To UBound(tbd)
For idc = 2 To UBound(tbd, 2)
If Not IsError(tbd(idl, idc)) Then
If Cells(lig, 1).Value = tbd(idl, idc) Then
col = col + 1
Cells(lig, col).Value = tbd(idl, 1)
End If
End If
Next idc
Next idl
Next lig
Application.ScreenUpdating = True
End Sub