Created
January 12, 2015 13:04
-
-
Save erzk/6610e306bd5433c128b4 to your computer and use it in GitHub Desktop.
adds percentages to new columns of the raw data file exported from LM Tool
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub addPercentagesLMTool() | |
ActiveCell.FormulaR1C1 = "percPreApproved" | |
Range("I1").Select | |
ActiveCell.FormulaR1C1 = "percApproved" | |
Range("J1").Select | |
ActiveCell.FormulaR1C1 = "percPreRejected" | |
Range("K1").Select | |
ActiveCell.FormulaR1C1 = "percRejected" | |
Range("L1").Select | |
ActiveCell.FormulaR1C1 = "percOnHold" | |
Range("H2").Select | |
ActiveCell.FormulaR1C1 = "=(RC[-5]/SUM(RC3:RC7))*100" | |
Range("H2").Select | |
Selection.AutoFill Destination:=Range("H2:L2"), Type:=xlFillDefault | |
Range("H2:L2").Select | |
Selection.AutoFill Destination:=Range("H2:L364") | |
Range("H2:L364").Select | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment