Macro to replace a text block in a drawing with another textblock?

Any direction someone could give would be appreciated? I know how to find an existing block by filename but I am unable to find an api for specifically how to do the replace.

SolidworksApi macros