Hello,
I have a spreadsheet and I would like to run a macro to automatically sum the values of column E at the bottom of column E at the first occurence of a blank cell in Column A. So if Column A has no more values starting at A10 then E10 is the Sum of E1-E9. I want to do the same for Column F too (Sum of F1-F9).
The second part of the problem is that I have already recorded a macro and would like to add this on. I don't have ANY experience with coding and the macro was recorded by me simply going through the motions. I do know how to go in and look at what I've recorded but none of it means anything to me so my second question is at what point in the macro below would I cut and paste the solution to the above into this:
Sub Macro1()
'
' Macro1 Macro
'
' Keyboard Shortcut: Ctrl+i
'
Rows("1:1").Select
Selection.Delete Shift:=xlUp
Columns("A:G").Select
Selection.Delete Shift:=xlToLeft
Columns("C:D").Select
Selection.Delete Shift:=xlToLeft
Columns("C:C").Select
Selection.Delete Shift:=xlToLeft
Columns("D:D").Select
Selection.Delete Shift:=xlToLeft
Columns("E:G").Select
Selection.Delete Shift:=xlToLeft
Columns("G:G").Select
Selection.Delete Shift:=xlToLeft
Application.WindowState = xlNormal
Application.Left = 296.5
Application.Top = 103.75
Columns("A:A").Select
With Selection
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlTop
.WrapText = False
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False
End With
Application.Left = 169
Application.Top = 112
Columns("E:E").Select
Selection.Cut Destination:=Columns("P:P")
Columns("D:D").Select
Selection.Replace What:="GIFT", Replacement:="Gift", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
Selection.Replace What:="PP", Replacement:="Pledge Payment", LookAt:= _
xlPart, SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
Selection.Replace What:="PLEDGE", Replacement:="Pledge", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
Range("E2").Select
ActiveCell.FormulaR1C1 = "=IF(RC[1]>0,"""",RC[1])"
Range("E2").Select
ActiveCell.FormulaR1C1 = "=IF(RC[1]>0,"""",RC[11])"
Range("E2").Select
Selection.AutoFill Destination:=Range("E2:E32")
Range("E2:E32").Select
Columns("E:F").Select
Selection.Style = "Currency"
Cells.Select
Cells.EntireColumn.AutoFit
With Selection.Font
.Name = "ARIAL"
.Size = 8
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = 1
.TintAndShade = 0
.ThemeFont = xlThemeFontNone
End With
End Sub
Thank you in advance for your help!
Bookmarks