Sub OpenFile()
Dim Fname As String
Dim Wbk As Workbook
Dim Sht As Worksheet
Dim Usdrws As Long
Dim Ary As Variant
Dim Info As String
Dim Cnt As Long
Info = "January'18 Summary|M41:Q54|Historical Data|X29:AH36"
Ary = Split(Info, "|")
For Cnt = LBound(Ary) To UBound(Ary) Step 2
Worksheets(Ary(Cnt)).Range(Ary(Cnt + 1)).Interior.Color = 104
Next Cnt
Set Sht = ActiveWorkbook.Sheets("OTC")
ChDrive "W:"
ChDir "W:\Insights Team\ALL ACADEMIC\Reporting\Weekly RAM\OTC\Weekly RAM"
Fname = Application.GetOpenFilename(FileFilter:="xls Files (*.xls*), *.xls*", Title:="Select a file", MultiSelect:=False)
If Fname = "False" Then
MsgBox "no file selected"
Exit Sub
Else
Set Wbk = Workbooks.Open(Fname)
With Wbk.Sheets("January'18 Summary")
Sht.Range("m41:q54").ClearContents
.Range("l5:p18").Copy
Sht.Range("m41").PasteSpecial xlPasteValues
Wbk.Sheets ("Historical Data")
Sht.Range("x29:ah36").ClearContents
.Range("h41:r48").Copy
Sht.Range("x29").PasteSpecial xlPasteValues
Application.CutCopyMode = False
End With
Application.DisplayAlerts = False
Wbk.Close , False
End If