Sub cp()
Dim eWorkbook, iWorkbook As Workbook
Set eWorkbook = ThisWorkbook
Dim i, z As Long
Dim iWorkbookImportOpen As Variant
'THIS TURNS OFF ANY ALERT BOXES (TEMPORARILY) THAT MAY INTERFERE WITH THE IMPORT PROCESS
Application.DisplayAlerts = False: Application.AskToUpdateLinks = False: Application.ScreenUpdating = False: Application.Calculation = xlCalculationManual
'SETS THE DEFAULT OF WHAT FOLDER OR PATH THE DIALOG BOX STARTS IN
ChDir eWorkbook.Path
'PROMPTS THE DIALOG BOX - FILTERS ON EXCEL FILES ONLY
iWorkbookImportOpen = Application.GetOpenFilename(FileFilter:="Excel Workbooks (*.xlsx; *.xlsm; *.xls; *.xltm), *.xlsx; *.xlsm; *.xls; *.xltm", _
Title:="Select Import File", MultiSelect:=True)
On Error GoTo ExitSub
'SINCE MULTISELECT IS TRUE - LBOUND = LOWEST NUMBER OF THE WORKBOOKS SELECTED WHICH IS ALWAYS 1, UBOUND IS THE HIGHEST NUMBER OF THE WORKBOOKS SELECTED
For i = LBound(iWorkbookImportOpen) To UBound(iWorkbookImportOpen)
'DECLARES THE CURRENT IMPORT WORKBOOK IN THE CYCLE AND OPENS AS A READ ONLY
Set iWorkbook = Workbooks.Open(Filename:=iWorkbookImportOpen(i), ReadOnly:=True)
'ON THE IMPORTED WORKBOOK, ON THE FIRST WORKSHEET, COPY C2:C200
With iWorkbook.Worksheets(1).Range("C2:C200").Copy: End With
'ON THE MASTER / END WORKBOOK, FIND THE LAST ROW IN COLUMN A, TAKE THAT ROW NUMBER, ADD 1 TO IT, DESIGNATE MY PASTE CELL AS THAT ROW AND TRANSPOSE THE DATA
'INCLUDING THE HYPERLINKS AND FORMATTING
With eWorkbook.Worksheets(1)
z = eWorkbook.Worksheets(1).Cells(Rows.Count, "A").End(xlUp).Row + 1
.Cells(z, 1).PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:=False, Transpose:=True
End With
'CLOSE THE CURRENT IWORKBOOK/IMPORT WORKBOOK WITHOUT SAVING
iWorkbook.Close SaveChanges:=False
'MOVES TO THE NEXT IMPORT WORKBOOK IF THERE WERE MULTIPLE WORKBOOKS SELECTED IN THE DIALOG BOX
Next i
'TURNS BACK ON ANY EXCEL ALERTS
Application.DisplayAlerts = True: Application.AskToUpdateLinks = True: Application.ScreenUpdating = True: Application.Calculation = xlCalculationAutomatic
MsgBox ("done")
ExitSub: Exit Sub
End Sub