Your function works OK for me. When I make the test call:
Code:
Private Sub bTestAitor_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles bTestAitor.Click
With TeamEvents(Today.AddDays(7), Today, "Real Madrid", 1)
For i = 0 To .Count - 1
With .Item(i)
Print(.menuPath & "*" & .marketName)
End With
Next
End With
End Sub
\Soccer\UEFA Champions League\Fixtures 10 March\Real Madrid v Lyon
and all 37 markets with .menuPath =
\Soccer\Spanish Soccer\Primera Division\Fixtures 14 March\Valladolid v Real Madrid
Make sure that the date limits you use include days when your team (equipo) is playing in a Champions League match.



Leave a comment: