A lot of people get these two terms mixed up. A script is a piece of code that is written or edited and can be attached to a button or ran directly.
A Macro on the other hand is a sequence of steps that is recorded from the users actions.
They are very easy to mix up so read any questions carefully.