The operating system manages all the CPU, disc drives, establish a user interface, execute and provide services for applications software, printers, etc...
The language that is used to create macros in excel is Visual Basic for Applications. It is an implementation of Microsoft's event-driven programming language Visual Basic 6.