ImportFileboxData Macro
'
Dim dateiname As String
dateiname = ThisWorkbook.Worksheets("MAS").Range("E7").Value
'
ThisWorkbook.FollowHyperlink ThisWorkbook.Worksheets("MAS").Range("E8").Value
Range("A2:AL10000").Select
Application.CutCopyMode = False
Selection.Copy
Windows("CreateReports.xlsm").Activate
Sheets("RawData").Select
Range("A2").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Windows(dateiname).Activate
ActiveWorkbook.Close (True)
Windows("CreateReports.xlsm").Activate
Sheets("MAS").Select |
ß The hyperlink contains the address to where the file is stored
ß Here the selection of the data from the .csv starts
ß Here the ‘ordinary’ paste is taking place
ß into the spreadsheet where the macro button was hitted. |