In VBA, a Sub runs actions but doesn’t return a value, while a Function performs actions and returns a result you can use in formulas or code. To clear cells without removing formatting, use something like Range("A1:C10").ClearContents. Microsoft Learn and the Excel VBA reference are great...