Sorry I am not being more specific. The code is very busy and I was trying to simplify it. Here is an example:
Range("B4").Select
ActiveCell.FormulaR1C1 = "=IF(SUM(AK!C[5])<>0,SUM(AK!C[5]),""No Data Found"")"
Range("B5").Select
ActiveCell.FormulaR1C1 = "=IF(SUM(AZ!C[5])<>0,SUM(AZ!C[5]),""No Data Found"")"
Range("B6").Select
ActiveCell.FormulaR1C1 = "=IF(SUM(AR!C[5])<>0,SUM(AR!C[5]),""No Data Found"")"
Range("B7").Select
ActiveCell.FormulaR1C1 = "=IF(SUM(CA!C[5])<>0,SUM(CA!C[5]),""No Data Found"")"
Range("B8").Select
ActiveCell.FormulaR1C1 = "=IF(SUM(CO!C[5])<>0,SUM(CO!C[5]),""No Data Found"")"
Range("B9").Select
ActiveCell.FormulaR1C1 = "=IF(SUM(CT!C[5])<>0,SUM(CT!C[5]),""No Data Found"")"
Range("B10").Select
ActiveCell.FormulaR1C1 = "=IF(SUM(AL!C[5])<>0,SUM(AL!C[5]),""No Data Found"")"
I am trying to get it to look like:
Range("B9").select = "=IF(SUM(AL!C[5])<>0,SUM(AL!C[5]),""No Data Found"")"
Range("B9").select = "=IF(SUM(AL!C[5])<>0,SUM(AL!C[5]),""No Data Found"")"
Range("B9").select = "=IF(SUM(AL!C[5])<>0,SUM(AL!C[5]),""No Data Found"")"
Range("B9").select = "=IF(SUM(AL!C[5])<>0,SUM(AL!C[5]),""No Data Found"")"
Range("B9").select = "=IF(SUM(AL!C[5])<>0,SUM(AL!C[5]),""No Data Found"")"
Range("B9").select = "=IF(SUM(AL!C[5])<>0,SUM(AL!C[5]),""No Data Found"")"
Range("B9").select = "=IF(SUM(AL!C[5])<>0,SUM(AL!C[5]),""No Data Found"")"