How to create a macro?

Hi,

i have many times read about macros on this forum,but have no idea what its and i want to learn.So how can i start with simple things?can you share simple macro's to learn for some simple purposeds?

Thanks..

SolidworksApi macros