Sub Change2()
'
' Change2 Macro
'
' Keyboard Shortcut: Ctrl+Shift+Q
'
Dim i As Long
Dim lrow As Long
Application.DisplayAlerts = False
lrow = Range("G" & Rows.Count).End(xlUp).Row
For i = 7 To lrow
Cells(i, "G").Copy
Cells(i, "K").PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Cells(i, "G").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = "=RC[4]-RC[3]"
Cells(i, "G").Copy
Cells(i, "K").PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Application.CutCopyMode = False
Selection.Copy
Range("G7").PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Cells(i, "J").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = "0"
Columns("K:K").Delete Shift:=xlToLeft
Next i
Application.DisplayAlerts = True
End Sub
Sub Macro2()
'
' Macro2 Macro
'
' Keyboard Shortcut: Ctrl+Shift+x
'
Dim i As Long
Dim lrow As Long
Application.DisplayAlerts = False
lrow = Range("G" & Rows.Count).End(xlUp).Row
For i = 7 To lrow
Cells(i, "G").Select
Selection.Copy
Cells(i, "K").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Cells(i, "G").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = "RC[4]-RC[3]"
Cells(i, "G").Select
Selection.Copy
Cells(i, "K").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Application.CutCopyMode = False
Selection.Copy
Cells(i, "G").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Cells(i, "J").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = "0"
Columns("K:K").Select
Cells(i, "K").Activate
Next i
Application.DisplayAlerts = True
End Sub
ActiveSheet.Unprotect
rest of code
ActiveSheet.Protect