Sub daten_uebernehmen()
Dim strFile As String
Dim strPath As String
Dim loZeileZielmappe As Long
Dim inSpalte As Integer
Dim loZeileQuellmappe As Long
Dim loZaehler As Long
Application.ScreenUpdating = False
strPath = "C:\Test\"
strFile = Dir(strPath & "*.xls")
loZeileZielmappe = 6
loZaehler = 6
Do While strFile <> ""
If strFile <> ThisWorkbook.Name Then
For inSpalte = 2 To 7
loZeileZielmappe = loZaehler
For loZeileQuellmappe = 8 To 32
Cells(loZeileZielmappe, inSpalte).Formula = "='" & strPath & "[" & strFile & "]" & "Tabelle1" & "'!" & Chr(inSpalte + 64) & loZeileQuellmappe
loZeileZielmappe = loZeileZielmappe + 1
Next loZeileQuellmappe
Next inSpalte
End If
loZaehler = loZaehler + 25
loZeileZielmappe = loZaehler
strFile = Dir()
Loop
Range("B6:G" & loZeileZielmappe).Copy
Range("B6:G" & loZeileZielmappe).PasteSpecial Paste:=xlPasteValues
Application.CutCopyMode = False
Application.ScreenUpdating = True
End Sub
If strFile <> ThisWorkbook.Name Then
[b]Cells(loZeileZielmappe, 1) = strFile[/b]
For inSpalte = 2 To 7
loZeileZielmappe = loZaehler
For loZeileQuellmappe = 8 To 32
Cells(loZeileZielmappe, inSpalte).Formula = "='" & strPath & "[" & _
strFile & "]" & "Tabelle1" & "'!" & Chr(inSpalte + 64) & loZeileQuellmappe
loZeileZielmappe = loZeileZielmappe + 1
Next loZeileQuellmappe
Next inSpalte
End If
Dim mySHFolderItem As Object, myObjShell As Object
Dim myDefaultPath As Variant
Dim myObjFolder As Object
myDefaultPath = ""
Set myObjShell = CreateObject("Shell.Application")
Set myObjFolder = myObjShell.BrowseForFolder(0&, "Ordner auswählen...", 0&, myDefaultPath)
If myObjFolder Is Nothing Then Exit Sub
Set mySHFolderItem = myObjFolder.Self
strPath = mySHFolderItem.Path & ("\")
Application.ScreenUpdating = False
strFile = Dir(strPath & "*.xls")
Frage zu DSL Geschwindigkeit unter Windows xp und 2000
woll 06.01.2007 - 127 Hits - 2 Antworten
daten zusammenfassen
MasterMadMax 02.05.2007 - 151 Hits - 7 Antworten
auto ausfüllen
nobody48 19.11.2007 - 95 Hits - 6 Antworten
mehrere Listen zusammenfassen
aufarbeit 29.11.2007 - 161 Hits - 1 Antwort
Hyperlink einfügen aus vorgegebenem Ordner
Lemmy49 27.05.2008 - 71 Hits - 8 Antworten