VB Code:
  1. Dim ctl As Control
  2. Dim x As Integer
  3.  
  4. Open "C:/List.txt" For Append As #1
  5.  
  6. For Each ctl In Controls
  7.     If Typeof ctl Is Listbox Then
  8.         For x = 0 To ctl.ListCount - 1
  9.             Print #1, ctl.List(x)
  10.         Next x
  11.     End If
  12. Next
  13.  
  14. Close #1