hi,
Have recorded one macro which works fine but just would like to know if there is a simpler way of writing it. I am new to vb and macros and hope the length of the macro can be reduced by way of a loop or some commands to reiterate. Any help would be highly appreciated!
Sub bench()
'
' bench Macro
'
'
Range("N13:N19").Select
Application.CutCopyMode = False
Selection.Copy
Range("A13").Select
ActiveSheet.Paste
Range("A12:M13").Select
Application.CutCopyMode = False
Selection.Copy
ActiveSheet.Next.Select
ActiveSheet.Next.Select
Application.CutCopyMode = False
Selection.ClearContents
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
Selection.Copy
ActiveSheet.Next.Select
ActiveSheet.Next.Select
Range("A1").Select
ActiveSheet.Paste
Range("A3").Select
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
Range("A19").Select
Application.CutCopyMode = False
Selection.Copy
ActiveSheet.Next.Select
ActiveSheet.Next.Select
ActiveSheet.Paste
Range("B3").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = _
"=VLOOKUP(""Mandideep"",BenchMarkReportExcel!R[10]C[-1]:R[16]C[11],2,FALSE)"
Range("C3").Select
ActiveCell.FormulaR1C1 = _
"=IF(RC[-1]=BenchMarkReportExcel!R[16]C[-1],BenchMarkReportExcel!R[16]C,"""")"
Range("C3").Select
Selection.AutoFill Destination:=Range("C3:M3"), Type:=xlFillDefault
Range("C3:M3").Select
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
ActiveWindow.SmallScroll Down:=13
Range("N23:N29").Select
Selection.Copy
Range("A23").Select
ActiveSheet.Paste
Range("A22:N23").Select
Application.CutCopyMode = False
Selection.Copy
ActiveSheet.Next.Select
ActiveSheet.Next.Select
Range("A6").Select
ActiveSheet.Paste
Range("A8").Select
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
Range("A29").Select
Application.CutCopyMode = False
Selection.Copy
ActiveSheet.Next.Select
ActiveSheet.Next.Select
ActiveSheet.Paste
Range("B8").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = _
"=VLOOKUP(""Mandideep"",BenchMarkReportExcel!R[15]C[-1]:R[21]C[11],2,FALSE)"
Range("C8").Select
ActiveCell.FormulaR1C1 = _
"=IF(RC[-1]=BenchMarkReportExcel!R[21]C[-1],BenchMarkReportExcel!R[21]C,"""")"
Range("C8").Select
Selection.AutoFill Destination:=Range("C8:M8"), Type:=xlFillDefault
Range("C8:M8").Select
Range("N6:N7").Select
Selection.ClearContents
Range("A11").Select
Sheets("BenchMarkReportExcel").Select
Range("A32:M35").Select
ActiveWindow.SmallScroll Down:=8
Range("N33:N39").Select
Selection.Copy
Range("A33").Select
ActiveSheet.Paste
Range("A32:N33").Select
Application.CutCopyMode = False
Selection.Copy
Application.CutCopyMode = False
Range("B22:M22").Select
Selection.Copy
Range("B32").Select
ActiveSheet.Paste
Range("A32:M33").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Sheet2").Select
ActiveSheet.Paste
Sheets("BenchMarkReportExcel").Select
Range("A38").Select
Application.CutCopyMode = False
Selection.Copy
ActiveSheet.Next.Select
ActiveSheet.Next.Select
Range("A13").Select
ActiveSheet.Paste
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
ActiveSheet.Next.Select
ActiveSheet.Next.Select
Range("B13").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = _
"=VLOOKUP(""Mandideep"",BenchMarkReportExcel!R[20]C[-1]:R[26]C[11],2,FALSE)"
Range("C13").Select
ActiveCell.FormulaR1C1 = _
"=IF(RC[-1]=BenchMarkReportExcel!R[25]C[-1],BenchMarkReportExcel!R[25]C,"""")"
Range("C13").Select
Selection.AutoFill Destination:=Range("C13:M13"), Type:=xlFillDefault
Range("C13:M13").Select
Range("A15").Select
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
Range("N43:N49").Select
Selection.Copy
Range("A43").Select
ActiveSheet.Paste
Range("A42:M43").Select
Application.CutCopyMode = False
Selection.Copy
ActiveSheet.Next.Select
ActiveSheet.Next.Select
Range("A16").Select
ActiveSheet.Paste
Range("A18").Select
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
Range("A48").Select
Application.CutCopyMode = False
Selection.Copy
ActiveSheet.Next.Select
ActiveSheet.Next.Select
ActiveSheet.Paste
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
Range("B48").Select
ActiveSheet.Next.Select
ActiveSheet.Next.Select
Range("B18").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = _
"=VLOOKUP(""Mandideep"",BenchMarkReportExcel!R[25]C[-1]:R[31]C[11],2,FALSE)"
Range("C18").Select
ActiveCell.FormulaR1C1 = _
"=IF(RC[-1]=BenchMarkReportExcel!R[30]C[-1],BenchMarkReportExcel!R[30]C,"""")"
Range("C18").Select
Selection.AutoFill Destination:=Range("C18:M18"), Type:=xlFillDefault
Range("C18:M18").Select
Range("A21").Select
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
Range("N53:N59").Select
Selection.Copy
Range("A53").Select
ActiveSheet.Paste
Range("A52:M53").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Sheet2").Select
ActiveSheet.Paste
Range("A23").Select
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
Range("A58").Select
Application.CutCopyMode = False
Selection.Copy
ActiveSheet.Next.Select
ActiveSheet.Next.Select
Application.CutCopyMode = False
Selection.Copy
ActiveSheet.Paste
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
Application.CutCopyMode = False
Selection.Copy
ActiveSheet.Next.Select
ActiveSheet.Next.Select
ActiveSheet.Paste
Range("B23").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = _
"=VLOOKUP(""Mandideep"",BenchMarkReportExcel!R[35]C,2,FALSE)"
Range("B23").Select
ActiveCell.FormulaR1C1 = _
"=VLOOKUP(""Mandideep"",BenchMarkReportExcel!R[35]C,2,FALSE)"
Sheets("Sheet2").Select
ActiveCell.FormulaR1C1 = _
"=VLOOKUP(""Mandideep"",BenchMarkReportExcel!R[30]C[-1]:R[36]C[11],2,FALSE)"
Range("C23").Select
ActiveCell.FormulaR1C1 = _
"=IF(RC[-1]=BenchMarkReportExcel!R[35]C[-1],BenchMarkReportExcel!R[35]C,"""")"
Range("C23").Select
Selection.AutoFill Destination:=Range("C23:M23"), Type:=xlFillDefault
Range("C23:M23").Select
Range("A25").Select
Sheets("BenchMarkReportExcel").Select
Range("N63:N69").Select
Selection.Copy
Range("A63").Select
ActiveSheet.Paste
Range("A62:M63").Select
Application.CutCopyMode = False
Selection.Copy
ActiveSheet.Next.Select
ActiveSheet.Next.Select
ActiveSheet.Paste
Range("A27").Select
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
Range("A68").Select
Application.CutCopyMode = False
Selection.Copy
Range("A69").Select
ActiveSheet.Next.Select
ActiveSheet.Next.Select
ActiveSheet.Paste
Range("B27").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = _
"=vllokup(""Mandideep"",BenchMarkReportExcel!R[36]C[-1]:R[42]C[11],2,FALSE)"
Range("B27").Select
ActiveCell.FormulaR1C1 = _
"=vlokup(""Mandideep"",BenchMarkReportExcel!R[36]C[-1]:R[42]C[11],2,FALSE)"
Range("B27").Select
ActiveCell.FormulaR1C1 = _
"=VLOOKUP(""Mandideep"",BenchMarkReportExcel!R[36]C[-1]:R[42]C[11],2,FALSE)"
Range("C27").Select
ActiveCell.FormulaR1C1 = _
"=IF(RC[-1]=BenchMarkReportExcel!R[41]C[-1],BenchMarkReportExcel!R[41]C,"""")"
Range("C27").Select
Selection.AutoFill Destination:=Range("C27:M27"), Type:=xlFillDefault
Range("C27:M27").Select
Range("A30").Select
Sheets("BenchMarkReportExcel").Select
ActiveWindow.SmallScroll Down:=24
Range("N73:N79").Select
Selection.Copy
Range("A73").Select
ActiveSheet.Paste
Range("A72:N73").Select
Application.CutCopyMode = False
Selection.Copy
ActiveSheet.Next.Select
ActiveSheet.Next.Select
ActiveSheet.Paste
Range("N30:N31").Select
Application.CutCopyMode = False
Selection.ClearContents
Range("A32").Select
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
Range("A78").Select
Selection.Copy
ActiveSheet.Next.Select
ActiveSheet.Next.Select
ActiveSheet.Paste
Range("B32").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = _
"=VLOOKUP(""Mandideep"",BenchMarkReportExcel!R[41]C[-1]:R[47]C[11],2,FALSE)"
Range("C32").Select
ActiveCell.FormulaR1C1 = _
"=IF(RC[-1]=BenchMarkReportExcel!R[46]C[-1],BenchMarkReportExcel!R[46]C,"""")"
Range("C32").Select
Selection.AutoFill Destination:=Range("C32:N32"), Type:=xlFillDefault
Range("C32:N32").Select
Range("N30:N32").Select
Selection.ClearContents
Range("A34").Select
Sheets("BenchMarkReportExcel").Select
Range("N83:N89").Select
Selection.Copy
Range("A83").Select
ActiveSheet.Paste
Range("A82:M83").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Sheet2").Select
ActiveSheet.Paste
ActiveWindow.SmallScroll Down:=13
Sheets("BenchMarkReportExcel").Select
Range("A88").Select
Application.CutCopyMode = False
Selection.Copy
Range("A18:A88").Select
Range("A88").Activate
Application.CutCopyMode = False
Range("A88").Select
Selection.Copy
ActiveSheet.Next.Select
ActiveSheet.Next.Select
Range("A36").Select
ActiveSheet.Paste
Range("B36").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = _
"=VLOOKUP(""Mandideep"",BenchMarkReportExcel!R[47]C[-1]:R[53]C[11],2,FALSE)"
Range("C36").Select
ActiveCell.FormulaR1C1 = _
"=IF(RC[-1]=BenchMarkReportExcel!R[52]C[-1],BenchMarkReportExcel!R[52]C,"""")"
Range("C36").Select
Selection.AutoFill Destination:=Range("C36:M36"), Type:=xlFillDefault
Range("C36:M36").Select
Range("A39").Select
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
ActiveWindow.SmallScroll Down:=12
Range("A92:M93").Select
Selection.Copy
ActiveSheet.Next.Select
ActiveSheet.Next.Select
ActiveSheet.Paste
Range("A41").Select
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
Range("A97").Select
Application.CutCopyMode = False
Selection.Copy
ActiveSheet.Next.Select
ActiveSheet.Next.Select
ActiveSheet.Paste
Range("B41").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = _
"=VLOOKUP(""Mandideep"",BenchMarkReportExcel!R[51]C[-1]:R[58]C[11],2,FALSE)"
Range("C41").Select
ActiveCell.FormulaR1C1 = _
"=IF(RC[-1]=BenchMarkReportExcel!R[56]C[-1],BenchMarkReportExcel!R[56]C,"""")"
Range("C41").Select
Selection.AutoFill Destination:=Range("C41:M41"), Type:=xlFillDefault
Range("C41:M41").Select
Range("A43").Select
Sheets("BenchMarkReportExcel").Select
Range("N103:N109").Select
Selection.Copy
Range("A103").Select
ActiveSheet.Paste
Range("A102:M103").Select
Application.CutCopyMode = False
Selection.Copy
ActiveSheet.Next.Select
ActiveSheet.Next.Select
ActiveSheet.Paste
Range("A45").Select
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
Range("A108").Select
Application.CutCopyMode = False
Selection.Copy
ActiveSheet.Next.Select
ActiveSheet.Next.Select
ActiveSheet.Paste
Range("B45").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = _
"=VLOOKUP(""Mandideep"",BenchMarkReportExcel!R[58]C[-1]:R[64]C[11],2,FALSE)"
Range("C45").Select
ActiveCell.FormulaR1C1 = _
"=IF(RC[-1]=BenchMarkReportExcel!R[63]C[-1],BenchMarkReportExcel!R[63]C,"""")"
Range("C45").Select
Selection.AutoFill Destination:=Range("C45:M45"), Type:=xlFillDefault
Range("C45:M45").Select
Range("A48").Select
Sheets("BenchMarkReportExcel").Select
Range("N113:N119").Select
Selection.Copy
Range("A113").Select
ActiveSheet.Paste
Range("A112:M113").Select
Application.CutCopyMode = False
Selection.Copy
ActiveSheet.Next.Select
ActiveSheet.Next.Select
ActiveSheet.Paste
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
Range("A119").Select
Application.CutCopyMode = False
Selection.Copy
ActiveSheet.Next.Select
ActiveSheet.Next.Select
Range("A50").Select
ActiveSheet.Paste
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
ActiveSheet.Next.Select
ActiveSheet.Next.Select
Range("B50").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = _
"=VLOOKUP(""Mandideep"",BenchMarkReportExcel!R[63]C[-1]:R[69]C[11],2,FALSE)"
Range("C50").Select
ActiveCell.FormulaR1C1 = _
"=IF(RC[-1]=BenchMarkReportExcel!R[69]C[-1],BenchMarkReportExcel!R[69]C,"""")"
Range("C50").Select
Selection.AutoFill Destination:=Range("C50:M50"), Type:=xlFillDefault
Range("C50:M50").Select
Range("A52").Select
Sheets("BenchMarkReportExcel").Select
Range("N123:N129").Select
Selection.Copy
Range("A123").Select
ActiveSheet.Paste
Range("A122:M123").Select
Application.CutCopyMode = False
Selection.Copy
ActiveSheet.Next.Select
ActiveSheet.Next.Select
ActiveSheet.Paste
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
Range("A129").Select
Application.CutCopyMode = False
Selection.Copy
ActiveSheet.Next.Select
ActiveSheet.Next.Select
Range("A54").Select
ActiveSheet.Paste
Range("B54").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = "=VLOOKUP"
Range("B53").Select
ActiveCell.FormulaR1C1 = "=VL"
Range("B54").Select
ActiveCell.FormulaR1C1 = _
"=VLOOKUP(""Mandideep"",BenchMarkReportExcel!R[69]C[-1]:R[75]C[11],2,0)"
Range("C54").Select
ActiveCell.FormulaR1C1 = _
"=IF(RC[-1]=BenchMarkReportExcel!R[75]C[-1],BenchMarkReportExcel!R[75]C,"""")"
Range("C54").Select
Selection.AutoFill Destination:=Range("C54:M54"), Type:=xlFillDefault
Range("C54:M54").Select
Range("A56").Select
Sheets("BenchMarkReportExcel").Select
Range("N133:N139").Select
Selection.Copy
Range("A133").Select
ActiveSheet.Paste
Range("A132:M133").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Sheet2").Select
ActiveSheet.Paste
Range("A58").Select
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
Range("A139").Select
Application.CutCopyMode = False
Selection.Copy
ActiveSheet.Next.Select
ActiveSheet.Next.Select
ActiveSheet.Paste
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
Range("A137").Select
Application.CutCopyMode = False
Selection.Copy
ActiveSheet.Next.Select
ActiveSheet.Next.Select
ActiveSheet.Paste
Range("B58").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = _
"=VLOOKUP(""Mandideep"",BenchMarkReportExcel!R[75]C[-1]:R[81]C[11],2,FALSE)"
Range("C58").Select
ActiveCell.FormulaR1C1 = _
"=IF(RC[-1]=BenchMarkReportExcel!R[79]C[-1],BenchMarkReportExcel!R[79]C,"""")"
Range("C58").Select
Selection.AutoFill Destination:=Range("C58:M58"), Type:=xlFillDefault
Range("C58:M58").Select
Range("A60").Select
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
Range("N143:N149").Select
Selection.Copy
Range("A143").Select
ActiveSheet.Paste
Range("A142:M143").Select
Application.CutCopyMode = False
Selection.Copy
ActiveSheet.Next.Select
ActiveSheet.Next.Select
ActiveSheet.Paste
Range("A62").Select
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
Range("A147").Select
Application.CutCopyMode = False
Selection.Copy
ActiveSheet.Next.Select
ActiveSheet.Next.Select
ActiveSheet.Paste
Range("B62").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = _
"=VLOOKUP(""Mandideep"",BenchMarkReportExcel!R[91]C[-1]:R[97]C[11],2,FALSE)"
Range("C62").Select
ActiveCell.FormulaR1C1 = _
"=IF(RC[-1]=BenchMarkReportExcel!R[95]C[-1],BenchMarkReportExcel!R[95]C,"""")"
Range("C62").Select
Selection.AutoFill Destination:=Range("C62:M62"), Type:=xlFillDefault
Range("C62:M62").Select
Range("A64").Select
Sheets("BenchMarkReportExcel").Select
Range("N153:N159").Select
Selection.Copy
Range("A153").Select
ActiveSheet.Paste
Range("A152:M153").Select
Application.CutCopyMode = False
Selection.Copy
ActiveSheet.Next.Select
ActiveSheet.Next.Select
ActiveSheet.Paste
Range("A66").Select
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
Range("A157").Select
Application.CutCopyMode = False
Selection.Copy
ActiveSheet.Next.Select
ActiveSheet.Next.Select
ActiveSheet.Paste
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
Range("B157").Select
ActiveSheet.Next.Select
ActiveSheet.Next.Select
Range("B66").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = _
"=VLOOKUP(""Mandideep"",BenchMarkReportExcel!R[87]C[-1]:R[93]C[11],2,FALSE)"
Range("C66").Select
ActiveCell.FormulaR1C1 = _
"=IF(RC[-1]=BenchMarkReportExcel!R[91]C[-1],BenchMarkReportExcel!R[91]C,"""")"
Range("C66").Select
Selection.AutoFill Destination:=Range("C66:M66"), Type:=xlFillDefault
Range("C66:M66").Select
ActiveWindow.SmallScroll Down:=8
Sheets("BenchMarkReportExcel").Select
ActiveWindow.SmallScroll Down:=25
Range("N163:N169").Select
Selection.Copy
Range("A163").Select
ActiveSheet.Paste
Range("N173:N179").Select
Application.CutCopyMode = False
Selection.Copy
Range("A173").Select
ActiveSheet.Paste
Range("A171:M173").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Sheet2").Select
Range("A68").Select
ActiveSheet.Paste
Sheets("BenchMarkReportExcel").Select
Range("A179:O179").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Sheet2").Select
Range("A71").Select
ActiveSheet.Paste
Range("N71:O71").Select
Application.CutCopyMode = False
Selection.ClearContents
Range("A68").Select
Selection.ClearContents
Range("A73").Select
Sheets("BenchMarkReportExcel").Select
ActiveWindow.SmallScroll Down:=37
Sheets("Sheet2").Select
End Sub
Have recorded one macro which works fine but just would like to know if there is a simpler way of writing it. I am new to vb and macros and hope the length of the macro can be reduced by way of a loop or some commands to reiterate. Any help would be highly appreciated!
Sub bench()
'
' bench Macro
'
'
Range("N13:N19").Select
Application.CutCopyMode = False
Selection.Copy
Range("A13").Select
ActiveSheet.Paste
Range("A12:M13").Select
Application.CutCopyMode = False
Selection.Copy
ActiveSheet.Next.Select
ActiveSheet.Next.Select
Application.CutCopyMode = False
Selection.ClearContents
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
Selection.Copy
ActiveSheet.Next.Select
ActiveSheet.Next.Select
Range("A1").Select
ActiveSheet.Paste
Range("A3").Select
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
Range("A19").Select
Application.CutCopyMode = False
Selection.Copy
ActiveSheet.Next.Select
ActiveSheet.Next.Select
ActiveSheet.Paste
Range("B3").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = _
"=VLOOKUP(""Mandideep"",BenchMarkReportExcel!R[10]C[-1]:R[16]C[11],2,FALSE)"
Range("C3").Select
ActiveCell.FormulaR1C1 = _
"=IF(RC[-1]=BenchMarkReportExcel!R[16]C[-1],BenchMarkReportExcel!R[16]C,"""")"
Range("C3").Select
Selection.AutoFill Destination:=Range("C3:M3"), Type:=xlFillDefault
Range("C3:M3").Select
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
ActiveWindow.SmallScroll Down:=13
Range("N23:N29").Select
Selection.Copy
Range("A23").Select
ActiveSheet.Paste
Range("A22:N23").Select
Application.CutCopyMode = False
Selection.Copy
ActiveSheet.Next.Select
ActiveSheet.Next.Select
Range("A6").Select
ActiveSheet.Paste
Range("A8").Select
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
Range("A29").Select
Application.CutCopyMode = False
Selection.Copy
ActiveSheet.Next.Select
ActiveSheet.Next.Select
ActiveSheet.Paste
Range("B8").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = _
"=VLOOKUP(""Mandideep"",BenchMarkReportExcel!R[15]C[-1]:R[21]C[11],2,FALSE)"
Range("C8").Select
ActiveCell.FormulaR1C1 = _
"=IF(RC[-1]=BenchMarkReportExcel!R[21]C[-1],BenchMarkReportExcel!R[21]C,"""")"
Range("C8").Select
Selection.AutoFill Destination:=Range("C8:M8"), Type:=xlFillDefault
Range("C8:M8").Select
Range("N6:N7").Select
Selection.ClearContents
Range("A11").Select
Sheets("BenchMarkReportExcel").Select
Range("A32:M35").Select
ActiveWindow.SmallScroll Down:=8
Range("N33:N39").Select
Selection.Copy
Range("A33").Select
ActiveSheet.Paste
Range("A32:N33").Select
Application.CutCopyMode = False
Selection.Copy
Application.CutCopyMode = False
Range("B22:M22").Select
Selection.Copy
Range("B32").Select
ActiveSheet.Paste
Range("A32:M33").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Sheet2").Select
ActiveSheet.Paste
Sheets("BenchMarkReportExcel").Select
Range("A38").Select
Application.CutCopyMode = False
Selection.Copy
ActiveSheet.Next.Select
ActiveSheet.Next.Select
Range("A13").Select
ActiveSheet.Paste
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
ActiveSheet.Next.Select
ActiveSheet.Next.Select
Range("B13").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = _
"=VLOOKUP(""Mandideep"",BenchMarkReportExcel!R[20]C[-1]:R[26]C[11],2,FALSE)"
Range("C13").Select
ActiveCell.FormulaR1C1 = _
"=IF(RC[-1]=BenchMarkReportExcel!R[25]C[-1],BenchMarkReportExcel!R[25]C,"""")"
Range("C13").Select
Selection.AutoFill Destination:=Range("C13:M13"), Type:=xlFillDefault
Range("C13:M13").Select
Range("A15").Select
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
Range("N43:N49").Select
Selection.Copy
Range("A43").Select
ActiveSheet.Paste
Range("A42:M43").Select
Application.CutCopyMode = False
Selection.Copy
ActiveSheet.Next.Select
ActiveSheet.Next.Select
Range("A16").Select
ActiveSheet.Paste
Range("A18").Select
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
Range("A48").Select
Application.CutCopyMode = False
Selection.Copy
ActiveSheet.Next.Select
ActiveSheet.Next.Select
ActiveSheet.Paste
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
Range("B48").Select
ActiveSheet.Next.Select
ActiveSheet.Next.Select
Range("B18").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = _
"=VLOOKUP(""Mandideep"",BenchMarkReportExcel!R[25]C[-1]:R[31]C[11],2,FALSE)"
Range("C18").Select
ActiveCell.FormulaR1C1 = _
"=IF(RC[-1]=BenchMarkReportExcel!R[30]C[-1],BenchMarkReportExcel!R[30]C,"""")"
Range("C18").Select
Selection.AutoFill Destination:=Range("C18:M18"), Type:=xlFillDefault
Range("C18:M18").Select
Range("A21").Select
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
Range("N53:N59").Select
Selection.Copy
Range("A53").Select
ActiveSheet.Paste
Range("A52:M53").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Sheet2").Select
ActiveSheet.Paste
Range("A23").Select
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
Range("A58").Select
Application.CutCopyMode = False
Selection.Copy
ActiveSheet.Next.Select
ActiveSheet.Next.Select
Application.CutCopyMode = False
Selection.Copy
ActiveSheet.Paste
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
Application.CutCopyMode = False
Selection.Copy
ActiveSheet.Next.Select
ActiveSheet.Next.Select
ActiveSheet.Paste
Range("B23").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = _
"=VLOOKUP(""Mandideep"",BenchMarkReportExcel!R[35]C,2,FALSE)"
Range("B23").Select
ActiveCell.FormulaR1C1 = _
"=VLOOKUP(""Mandideep"",BenchMarkReportExcel!R[35]C,2,FALSE)"
Sheets("Sheet2").Select
ActiveCell.FormulaR1C1 = _
"=VLOOKUP(""Mandideep"",BenchMarkReportExcel!R[30]C[-1]:R[36]C[11],2,FALSE)"
Range("C23").Select
ActiveCell.FormulaR1C1 = _
"=IF(RC[-1]=BenchMarkReportExcel!R[35]C[-1],BenchMarkReportExcel!R[35]C,"""")"
Range("C23").Select
Selection.AutoFill Destination:=Range("C23:M23"), Type:=xlFillDefault
Range("C23:M23").Select
Range("A25").Select
Sheets("BenchMarkReportExcel").Select
Range("N63:N69").Select
Selection.Copy
Range("A63").Select
ActiveSheet.Paste
Range("A62:M63").Select
Application.CutCopyMode = False
Selection.Copy
ActiveSheet.Next.Select
ActiveSheet.Next.Select
ActiveSheet.Paste
Range("A27").Select
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
Range("A68").Select
Application.CutCopyMode = False
Selection.Copy
Range("A69").Select
ActiveSheet.Next.Select
ActiveSheet.Next.Select
ActiveSheet.Paste
Range("B27").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = _
"=vllokup(""Mandideep"",BenchMarkReportExcel!R[36]C[-1]:R[42]C[11],2,FALSE)"
Range("B27").Select
ActiveCell.FormulaR1C1 = _
"=vlokup(""Mandideep"",BenchMarkReportExcel!R[36]C[-1]:R[42]C[11],2,FALSE)"
Range("B27").Select
ActiveCell.FormulaR1C1 = _
"=VLOOKUP(""Mandideep"",BenchMarkReportExcel!R[36]C[-1]:R[42]C[11],2,FALSE)"
Range("C27").Select
ActiveCell.FormulaR1C1 = _
"=IF(RC[-1]=BenchMarkReportExcel!R[41]C[-1],BenchMarkReportExcel!R[41]C,"""")"
Range("C27").Select
Selection.AutoFill Destination:=Range("C27:M27"), Type:=xlFillDefault
Range("C27:M27").Select
Range("A30").Select
Sheets("BenchMarkReportExcel").Select
ActiveWindow.SmallScroll Down:=24
Range("N73:N79").Select
Selection.Copy
Range("A73").Select
ActiveSheet.Paste
Range("A72:N73").Select
Application.CutCopyMode = False
Selection.Copy
ActiveSheet.Next.Select
ActiveSheet.Next.Select
ActiveSheet.Paste
Range("N30:N31").Select
Application.CutCopyMode = False
Selection.ClearContents
Range("A32").Select
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
Range("A78").Select
Selection.Copy
ActiveSheet.Next.Select
ActiveSheet.Next.Select
ActiveSheet.Paste
Range("B32").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = _
"=VLOOKUP(""Mandideep"",BenchMarkReportExcel!R[41]C[-1]:R[47]C[11],2,FALSE)"
Range("C32").Select
ActiveCell.FormulaR1C1 = _
"=IF(RC[-1]=BenchMarkReportExcel!R[46]C[-1],BenchMarkReportExcel!R[46]C,"""")"
Range("C32").Select
Selection.AutoFill Destination:=Range("C32:N32"), Type:=xlFillDefault
Range("C32:N32").Select
Range("N30:N32").Select
Selection.ClearContents
Range("A34").Select
Sheets("BenchMarkReportExcel").Select
Range("N83:N89").Select
Selection.Copy
Range("A83").Select
ActiveSheet.Paste
Range("A82:M83").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Sheet2").Select
ActiveSheet.Paste
ActiveWindow.SmallScroll Down:=13
Sheets("BenchMarkReportExcel").Select
Range("A88").Select
Application.CutCopyMode = False
Selection.Copy
Range("A18:A88").Select
Range("A88").Activate
Application.CutCopyMode = False
Range("A88").Select
Selection.Copy
ActiveSheet.Next.Select
ActiveSheet.Next.Select
Range("A36").Select
ActiveSheet.Paste
Range("B36").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = _
"=VLOOKUP(""Mandideep"",BenchMarkReportExcel!R[47]C[-1]:R[53]C[11],2,FALSE)"
Range("C36").Select
ActiveCell.FormulaR1C1 = _
"=IF(RC[-1]=BenchMarkReportExcel!R[52]C[-1],BenchMarkReportExcel!R[52]C,"""")"
Range("C36").Select
Selection.AutoFill Destination:=Range("C36:M36"), Type:=xlFillDefault
Range("C36:M36").Select
Range("A39").Select
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
ActiveWindow.SmallScroll Down:=12
Range("A92:M93").Select
Selection.Copy
ActiveSheet.Next.Select
ActiveSheet.Next.Select
ActiveSheet.Paste
Range("A41").Select
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
Range("A97").Select
Application.CutCopyMode = False
Selection.Copy
ActiveSheet.Next.Select
ActiveSheet.Next.Select
ActiveSheet.Paste
Range("B41").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = _
"=VLOOKUP(""Mandideep"",BenchMarkReportExcel!R[51]C[-1]:R[58]C[11],2,FALSE)"
Range("C41").Select
ActiveCell.FormulaR1C1 = _
"=IF(RC[-1]=BenchMarkReportExcel!R[56]C[-1],BenchMarkReportExcel!R[56]C,"""")"
Range("C41").Select
Selection.AutoFill Destination:=Range("C41:M41"), Type:=xlFillDefault
Range("C41:M41").Select
Range("A43").Select
Sheets("BenchMarkReportExcel").Select
Range("N103:N109").Select
Selection.Copy
Range("A103").Select
ActiveSheet.Paste
Range("A102:M103").Select
Application.CutCopyMode = False
Selection.Copy
ActiveSheet.Next.Select
ActiveSheet.Next.Select
ActiveSheet.Paste
Range("A45").Select
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
Range("A108").Select
Application.CutCopyMode = False
Selection.Copy
ActiveSheet.Next.Select
ActiveSheet.Next.Select
ActiveSheet.Paste
Range("B45").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = _
"=VLOOKUP(""Mandideep"",BenchMarkReportExcel!R[58]C[-1]:R[64]C[11],2,FALSE)"
Range("C45").Select
ActiveCell.FormulaR1C1 = _
"=IF(RC[-1]=BenchMarkReportExcel!R[63]C[-1],BenchMarkReportExcel!R[63]C,"""")"
Range("C45").Select
Selection.AutoFill Destination:=Range("C45:M45"), Type:=xlFillDefault
Range("C45:M45").Select
Range("A48").Select
Sheets("BenchMarkReportExcel").Select
Range("N113:N119").Select
Selection.Copy
Range("A113").Select
ActiveSheet.Paste
Range("A112:M113").Select
Application.CutCopyMode = False
Selection.Copy
ActiveSheet.Next.Select
ActiveSheet.Next.Select
ActiveSheet.Paste
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
Range("A119").Select
Application.CutCopyMode = False
Selection.Copy
ActiveSheet.Next.Select
ActiveSheet.Next.Select
Range("A50").Select
ActiveSheet.Paste
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
ActiveSheet.Next.Select
ActiveSheet.Next.Select
Range("B50").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = _
"=VLOOKUP(""Mandideep"",BenchMarkReportExcel!R[63]C[-1]:R[69]C[11],2,FALSE)"
Range("C50").Select
ActiveCell.FormulaR1C1 = _
"=IF(RC[-1]=BenchMarkReportExcel!R[69]C[-1],BenchMarkReportExcel!R[69]C,"""")"
Range("C50").Select
Selection.AutoFill Destination:=Range("C50:M50"), Type:=xlFillDefault
Range("C50:M50").Select
Range("A52").Select
Sheets("BenchMarkReportExcel").Select
Range("N123:N129").Select
Selection.Copy
Range("A123").Select
ActiveSheet.Paste
Range("A122:M123").Select
Application.CutCopyMode = False
Selection.Copy
ActiveSheet.Next.Select
ActiveSheet.Next.Select
ActiveSheet.Paste
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
Range("A129").Select
Application.CutCopyMode = False
Selection.Copy
ActiveSheet.Next.Select
ActiveSheet.Next.Select
Range("A54").Select
ActiveSheet.Paste
Range("B54").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = "=VLOOKUP"
Range("B53").Select
ActiveCell.FormulaR1C1 = "=VL"
Range("B54").Select
ActiveCell.FormulaR1C1 = _
"=VLOOKUP(""Mandideep"",BenchMarkReportExcel!R[69]C[-1]:R[75]C[11],2,0)"
Range("C54").Select
ActiveCell.FormulaR1C1 = _
"=IF(RC[-1]=BenchMarkReportExcel!R[75]C[-1],BenchMarkReportExcel!R[75]C,"""")"
Range("C54").Select
Selection.AutoFill Destination:=Range("C54:M54"), Type:=xlFillDefault
Range("C54:M54").Select
Range("A56").Select
Sheets("BenchMarkReportExcel").Select
Range("N133:N139").Select
Selection.Copy
Range("A133").Select
ActiveSheet.Paste
Range("A132:M133").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Sheet2").Select
ActiveSheet.Paste
Range("A58").Select
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
Range("A139").Select
Application.CutCopyMode = False
Selection.Copy
ActiveSheet.Next.Select
ActiveSheet.Next.Select
ActiveSheet.Paste
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
Range("A137").Select
Application.CutCopyMode = False
Selection.Copy
ActiveSheet.Next.Select
ActiveSheet.Next.Select
ActiveSheet.Paste
Range("B58").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = _
"=VLOOKUP(""Mandideep"",BenchMarkReportExcel!R[75]C[-1]:R[81]C[11],2,FALSE)"
Range("C58").Select
ActiveCell.FormulaR1C1 = _
"=IF(RC[-1]=BenchMarkReportExcel!R[79]C[-1],BenchMarkReportExcel!R[79]C,"""")"
Range("C58").Select
Selection.AutoFill Destination:=Range("C58:M58"), Type:=xlFillDefault
Range("C58:M58").Select
Range("A60").Select
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
Range("N143:N149").Select
Selection.Copy
Range("A143").Select
ActiveSheet.Paste
Range("A142:M143").Select
Application.CutCopyMode = False
Selection.Copy
ActiveSheet.Next.Select
ActiveSheet.Next.Select
ActiveSheet.Paste
Range("A62").Select
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
Range("A147").Select
Application.CutCopyMode = False
Selection.Copy
ActiveSheet.Next.Select
ActiveSheet.Next.Select
ActiveSheet.Paste
Range("B62").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = _
"=VLOOKUP(""Mandideep"",BenchMarkReportExcel!R[91]C[-1]:R[97]C[11],2,FALSE)"
Range("C62").Select
ActiveCell.FormulaR1C1 = _
"=IF(RC[-1]=BenchMarkReportExcel!R[95]C[-1],BenchMarkReportExcel!R[95]C,"""")"
Range("C62").Select
Selection.AutoFill Destination:=Range("C62:M62"), Type:=xlFillDefault
Range("C62:M62").Select
Range("A64").Select
Sheets("BenchMarkReportExcel").Select
Range("N153:N159").Select
Selection.Copy
Range("A153").Select
ActiveSheet.Paste
Range("A152:M153").Select
Application.CutCopyMode = False
Selection.Copy
ActiveSheet.Next.Select
ActiveSheet.Next.Select
ActiveSheet.Paste
Range("A66").Select
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
Range("A157").Select
Application.CutCopyMode = False
Selection.Copy
ActiveSheet.Next.Select
ActiveSheet.Next.Select
ActiveSheet.Paste
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
Range("B157").Select
ActiveSheet.Next.Select
ActiveSheet.Next.Select
Range("B66").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = _
"=VLOOKUP(""Mandideep"",BenchMarkReportExcel!R[87]C[-1]:R[93]C[11],2,FALSE)"
Range("C66").Select
ActiveCell.FormulaR1C1 = _
"=IF(RC[-1]=BenchMarkReportExcel!R[91]C[-1],BenchMarkReportExcel!R[91]C,"""")"
Range("C66").Select
Selection.AutoFill Destination:=Range("C66:M66"), Type:=xlFillDefault
Range("C66:M66").Select
ActiveWindow.SmallScroll Down:=8
Sheets("BenchMarkReportExcel").Select
ActiveWindow.SmallScroll Down:=25
Range("N163:N169").Select
Selection.Copy
Range("A163").Select
ActiveSheet.Paste
Range("N173:N179").Select
Application.CutCopyMode = False
Selection.Copy
Range("A173").Select
ActiveSheet.Paste
Range("A171:M173").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Sheet2").Select
Range("A68").Select
ActiveSheet.Paste
Sheets("BenchMarkReportExcel").Select
Range("A179:O179").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Sheet2").Select
Range("A71").Select
ActiveSheet.Paste
Range("N71:O71").Select
Application.CutCopyMode = False
Selection.ClearContents
Range("A68").Select
Selection.ClearContents
Range("A73").Select
Sheets("BenchMarkReportExcel").Select
ActiveWindow.SmallScroll Down:=37
Sheets("Sheet2").Select
End Sub