Skip to content

Instantly share code, notes, and snippets.

@erzk
Created January 12, 2015 13:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erzk/6610e306bd5433c128b4 to your computer and use it in GitHub Desktop.
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
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