Code:
Private Sub Command3_Click()
Dim myChild As Node
Dim myNode As Node
Dim myFile As String
Dim K As Integer, X As Integer
Dim NDX As Node
If Dir("C:\TABULATI\TREEVIEW_" & ANNO & ".csv") <> "" Then
Kill "C:\TABULATI\TREEVIEW_" & ANNO & ".csv"
End If
myFile = "C:\TABULATI\TREEVIEW_" & ANNO & ".csv"
Close #1
Open myFile For Output As #1
For Each myNode In TreeView1.Nodes
If myNode.Children > 0 And Mid(myNode.Text, 3, 1) = "-" Then
Print #1, myNode.Text
End If
Next
Close #1
Me.Text1.SetFocus
End Sub
Now how to loop each day in month?
attached my treeview