Code:
Public Sub testReadExcelSheetNames()
Dim names() As String
Dim I
Dim a
Dim myExcel As New Excel.Application
Dim myWorkbook As New Workbook
Dim arbeitsmappe() As String
strPath = "C:\Ausgabe.txt" 'ausgabe Pfad definieren
Dim Arr()
For X = 1 To 10
ReDim Preserve Arr(X)
Arr(X) = Range("A" & X)
zaehler = c + 1
Debug.Print Arr(X)
names = readExcelSheetNames(Arr(X))
Next X
End Sub
Code:
Open strPath For Output As #1
For I = 0 To UBound(names)
Print #1, names(I)
Next I
Close #1