VBA version of INSERTALIGNED

I'm trying to recreate Bricscad's INSERTALIGNED command in a VBA project. I cannot find any built-in way of doing it, so am guessing that, if it's possible, it would have to be coded. Has anyone else attempted this?