How to replace a line break in a string by a shortcut (CTRL+Enter)?

Hello,

A string variable contains a text located in different lines, such as:

This is
the text of
the example

When I use type into in order to paste such a text, i really want to press CTRL + ENTER in every vbcrlf produced in the text

How could i do it?

Edit: i do now want to remove the line breaks. What i want is that when typing the text, for every blank line it press “ctrl+enter”.

replace environment.newline with [k(ctrl)][k(enter)]

1 Like