Met onderstaande code krijg ik een foutmelding bij Workbooks("Poker Registratie").Activate. Deze foutmelding treedt niet op onder mijn account, maar wel bij anderen. Hoe moet ik deze code aanpassen, zodat de foutmelding niet meer voorkomt.
Private Sub Combobox1_Change()
Dim ws As Worksheet
If ComboBox1.ListIndex > -1 Then
ComboBox1 = Format(ComboBox1, "dd-mmm-yy")
End If
Workbooks("Poker Registratie").Activate
Set ws = Worksheets("PK1")
With ws
.Cells(21, 2).Value = Me.ComboBox1.Value 'datum invoeren
'Me.ComboBox1.Value = Format(Date, "dd-mmm-yy")
End With
Call UpdateBoeking
Call filterRecords
End Sub
Groet,
John
Private Sub Combobox1_Change()
Dim ws As Worksheet
If ComboBox1.ListIndex > -1 Then
ComboBox1 = Format(ComboBox1, "dd-mmm-yy")
End If
Workbooks("Poker Registratie").Activate
Set ws = Worksheets("PK1")
With ws
.Cells(21, 2).Value = Me.ComboBox1.Value 'datum invoeren
'Me.ComboBox1.Value = Format(Date, "dd-mmm-yy")
End With
Call UpdateBoeking
Call filterRecords
End Sub
Groet,
John