I am working on VBA, but I have one problem of how to replace a tag of HTML with Alt+Enter. For example, If I type a sentence: Hello World. In shell of Excel, I press on Alt+Enter to Enter between Hello and World. Then I want to copy it to somewhere else that after I copied it shows like: HelloWorld. Any help would be appreciate.
相关问题
- Views base64 encoded blob in HTML with PHP
- Is there a way to play audio on a mobile browser w
- HTML form is not sending $_POST values
- implementing html5 drag and drop photos with knock
-
Why does the box-shadow property not apply to a
You can use Excel formula:
=SUBSTITUTE(B4, "<br>", "
Alt+Enter")
The
<br>
tag in HTML just gives you a line break.In VBA, you can accomplish the same thing using the
vbNewLine
constant.The
Replace
function will come in handy for this.