I have this code that I got from someone else and would like help understanding it line by line. Although I know what it does when I run it, I'd like to understand it broken down.
The code is as follows:
Sub AddRow()
'
' AddRow Macro
'
' Keyboard Shortcut: Ctrl+r
'
Range("A2").Select
ActiveSheet.Unprotect
Selection.ListObject.ListRows.Add AlwaysInsert:=True
Selection.End(xlDown).Select
ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True _
, AllowInsertingRows:=True, AllowDeletingRows:=True, AllowFiltering:=True
End Sub
Bookmarks