Using Find and replace with Macro

Hello!

I want to create a macro for "Find and Replace Detailing Text". Iwant to replace a Text in a drawing when a button is pressed.

Manual procedure:
Strg+f
Type text: Find what
Type text: Replace with
Click on Replace all
Clcik on OK at the confirmation message

The inputs are always the same.

Is it possible? How can I make this?SolidworksApi macros