Macros & User defined function with VBA Macros & User defined function with VBA Why Macros / Functions? Automating a task performed frequently Automating repetitive…