Rafay Ahmed
New Member
Hi All,
I want to alter this Macro as for the Sum Total I have to select the ( LAST ROW + 1 ). Also attached is the sheet, for any inconvenience.
Thanks
I want to alter this Macro as for the Sum Total I have to select the ( LAST ROW + 1 ). Also attached is the sheet, for any inconvenience.
Thanks
Code:
Sub FMLdailyREPORT()
Range("D2").Select
ActiveCell.FormulaR1C1 = "$"
Range("E2").Select
Range(Selection, Selection.End(xlToRight)).Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Replace What:="$", Replacement:="", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
Selection.End(xlDown).Select
Range("E58").Select
ActiveCell.FormulaR1C1 = "=SUM(R[-56]C:R[-1]C)"
Range("E58").Select
Selection.AutoFill Destination:=Range("E58:L58"), Type:=xlFillDefault
Range("E58:L58").Select
Sheets("Input").Select
Range("E58").Select
End Sub
Attachments
Last edited by a moderator: