Hi i am getting a type mismatch error when trying to open the workbook at the set wbk line, not sure why i am getting this error
VBA Code:
Dim FNames As Variant
Dim Cnt As Long
Dim Wbk As Workbook
Dim MstWbk As Workbook
Dim Ws As Worksheet
Set MstWbk = ThisWorkbook
FNames = Application.GetOpenFilename(FileFilter:="Excel files (*.xls*), *.xls*", MultiSelect:=True)
If Not IsArray(FNames) Then Exit Sub
Set Wbk = Workbooks.Open(FNames)
Wbk.Worksheets("Payment").Range("M6:BW6").Copy
Wbk.Close False