Bonsoir à tous,

J'ai programmé un tableau de bord sur excel 2013 sous windows dans le cadre d'un examen en utilisant du VB. Le problème est que je dois utiliser un mac pour mon examen demain après midi mais que la macro ne semble fonctionner avec aucune version d'excel sous mac, j'ai testé sous Excel 2008, 2011,2016. J'obtiens une erreur Rowsource propriété invalide, voici le bout de code qui semble causer problème:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
 
 
    Private Sub UserForm_Initialize()
 
 
        Dim j As Long
        ComboBox1.Value = Range("A" & Cells(Rows.Count, 1).End(xlUp).Row) + 1
        Me.ComboBox2.RowSource = "SALARIES!C2:C" & Sheets("SALARIES").[C65000].End(xlUp).Row
        Me.ComboBox3.RowSource = "VEHICULES!A2:A" & Sheets("VEHICULES").[A65000].End(xlUp).Row
            Set Ws = Sheets("DEPLACEMENTS") 'Correspond au nom de votre onglet dans le fichier Excel
       With ComboBox1
            For j = 2 To Ws.Range("A" & Rows.Count).End(xlUp).Row
                .AddItem Ws.Range("A" & j)
            Next j
        End With
 
    End Sub
Si quelqu'un pourrait éclairer ma lanterne cela me sauverait la vie.

En vous remerciant,

Bonne soirée.