Create Section with function formula

hi thereis it possible to compose a mail with a function formula and a part of it will be a section? I know how to compose the mail but not how to create the section.

The CreateSection command only covers selected text. Maybe there is a way to autoselect a specific range of the text?

Hope one of you can help me. Thanks in advance!