Sub Change2()
'
' Change2 Macro
'
' Keyboard Shortcut: Ctrl+Shift+Q
'
ActiveCell.Select
Selection.Copy
ActiveCell.Offset(0, 4).Range("A1").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
ActiveCell.Offset(0, -4).Range("A1").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = "=RC[4]-RC[3]"
ActiveCell.Select
Selection.Copy
ActiveCell.Offset(0, 4).Range("A1").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Application.CutCopyMode = False
Selection.Copy
ActiveCell.Offset(0, -4).Range("A1").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
ActiveCell.Offset(0, 3).Range("A1").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = "0"
ActiveCell.Offset(1, -3).Range("A1").Select
End Sub
Sub test()
Dim i As Long
Dim lrow as Long
Application.ScreenUpdating = False
lrow = Rows("G" & Rows.Count).End(xlUp).Row `Finds the last row with data in Column G
For i = 7 to lrow `Macro will run continuously until lrow is found (the last row in Column G)
If Range("G" & i) = 0 Then
Range("H" & i).Formula = "=Today()+7" `This is what the macro is changing, putting this formula in H7:H(lrow)
End If
Next i
Application.ScreenUpdating = True
End Sub
Sub Change2()
'
' Change2 Macro
'
' Keyboard Shortcut: Ctrl+Shift+Q
'
Range("G7").Select
Selection.Copy
Range("K7").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("G7").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = "=RC[4]-RC[3]"
Range("G7").Select
Selection.Copy
Range("K7").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Application.CutCopyMode = False
Selection.Copy
Range("G7").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("J7").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = "0"
Columns("K:K").Select
Selection.Delete Shift:=xlToLeft
End Sub