I'm not really sure if this is what you mean, but at QV 9 they introduced the actions which are a set of very common commands they you would have to write a macro script to run. These actions include selectons, activations of sheets, etc.
You can, for example, make a selection when the document is opened.
go to settings -> Document properties -> triggers ->