I'm not aware of a way to do this (at least, not very easily if one exists).
But, let's back up. Why do you need to edit a macro via a program? Perhaps,
if you can tell us why you believe you need to do this, we can identify
another way to get you the result that you desire.