Function
Zelle_auslesen()
Dim
pfad
As
String
, datei
As
String
, blatt
As
String
, bezug
As
String
Dim
i
As
Long
pfad = Range(
"C2"
).Value
blatt =
"Tabelle1"
i = 1
Do
While
Range(
"B"
& i) <>
""
If
Len(Range(
"B"
& i).Value) > Len(
".xlsx"
)
Then
datei = Range(
"B"
& i)
Cells(7,
"G"
).Value = GetValue(pfad, datei, blatt,
"Y1333"
)
Cells(7,
"H"
).Value = GetValue(pfad, datei, blatt,
"Y1334"
)
Cells(7,
"I"
).Value = GetValue(pfad, datei, blatt,
"Y1335"
)
Cells(7,
"J"
).Value = GetValue(pfad, datei, blatt,
"Y1336"
)
Cells(7,
"K"
).Value = GetValue(pfad, datei, blatt,
"Y1337"
)
End
If
i = i + 1
Loop
End
Function