Hi,
I am new to Mr. Excel.
I replied to the previous post under my question so I'm sorry if you are seeing the code twice.
Sub penaltypmt()
'
' penaltypmt Macro
'
' Keyboard Shortcut: Ctrl+z
'
Columns("A:A").Select
Selection.TextToColumns Destination:=Range("A1"), DataType:=xlFixedWidth, _
FieldInfo:=Array(Array(0, 1), Array(32, 9), Array(45, 1), Array(53, 9), Array(59, 1), _
Array(70, 9)), TrailingMinusNumbers:=True
Cells.Select
Cells.EntireColumn.AutoFit
Range("D10").Select
Sheets("MSP Codes").Select
Range("I5").Select
ActiveCell.FormulaR1C1 = "=Sheet2!R10C1"
Range("I6").Select
Sheets("Sheet2").Select
Columns("C:C").Select
Selection.Insert Shift:=xlToRight, CopyOrigin:=xlFormatFromLeftOrAbove
Columns("C:D").Select
Range("D1").Activate
Selection.Insert Shift:=xlToRight, CopyOrigin:=xlFormatFromLeftOrAbove
Columns("F:F").Select
Selection.Insert Shift:=xlToRight, CopyOrigin:=xlFormatFromLeftOrAbove
Columns("B:B").Select
Selection.Replace What:="(", Replacement:="", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
Selection.Replace What:=")", Replacement:="", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
Range("C15").Select
ActiveCell.FormulaR1C1 = "='MSP Codes'!R2C9"
Range("C15").Select
Selection.AutoFill Destination:=Range("C15:C102")
Range("C15:C102").Select
Range("D15").Select
ActiveCell.FormulaR1C1 = "='MSP Codes'!R3C9"
Range("D15").Select
Selection.AutoFill Destination:=Range("D15:D102")
Range("D15:D102").Select
Range("E15").Select
ActiveCell.FormulaR1C1 = "='MSP Codes'!R4C9"
Range("E15").Select
Selection.AutoFill Destination:=Range("E15:E102")
Range("E15:E102").Select
Range("F15").Select
ActiveCell.FormulaR1C1 = "='MSP Codes'!R6C9"
Range("F15").Select
Selection.AutoFill Destination:=Range("F15:F102")
Range("F15:F102").Select
ActiveWindow.SmallScroll Down:=6
Range("H15").Select
ActiveCell.FormulaR1C1 = "=RC[-1]/'MSP Codes'!R7C9"
Range("H15").Select
Selection.AutoFill Destination:=Range("H15:H102")
Range("H15:H102").Select
Range("I15").Select
ActiveCell.FormulaR1C1 = "=RC[-1]*'MSP Codes'!R8C9"
Range("I15").Select
Selection.AutoFill Destination:=Range("I15:I102")
Range("I15:I102").Select
Range("J15").Select
ActiveCell.FormulaR1C1 = "=VLOOKUP(RC[-8],'MSP Codes'!C[-9]:C[-8],2,FALSE)"
Range("J15").Select
Selection.AutoFill Destination:=Range("J15:J102")
Range("J15:J102").Select
Columns("J:J").EntireColumn.AutoFit
Range("K15").Select
ActiveCell.FormulaR1C1 = "='MSP Codes'!R5C9"
Range("K15").Select
Selection.AutoFill Destination:=Range("K15:K102")
Range("K15:K102").Select
Columns("K:K").EntireColumn.AutoFit
End Sub