btnBrowse_Click()
Dim
WBZiel
As
Workbook, ExportDatei
As
Variant
Dim
WBQuelle
As
Workbook, WSZiel
As
Worksheet
Set
WBZiel = ThisWorkbook
Application.ScreenUpdating =
False
ExportDatei = Application.GetOpenFilename(
"Excel-Dateien, *.xlsx;*.xls;*.xlsm*"
, ,
"Bitte die Datei zum Kopieren öffnen ..."
)
ExportDatei =
CStr
(ExportDatei)
If
ExportDatei =
"Falsch"
Then
Exit
Sub
Set
WBQuelle = Workbooks.Open(ExportDatei)
With
WBQuelle
.Sheets(
"Generierte Interfaceliste 1"
).range(
"A1:KT9000"
).Copy WBZiel.Sheets(
"Standartisierte_IL"
).range(
"A1"
)
.Close savechanges:=
False
End
With
WBZiel.Sheets(
"Standartisierte_IL"
).Activate
Application.ScreenUpdating =
True
End
Sub