KnowBrainer Speech Recognition
Decrease font size
Increase font size
Topic Title: Pasting special without hard returns
Topic Summary: Is there a way to paste text into MS Word without hard returns
Created On: 09/01/2021 07:45 AM
Status: Post and Reply
Linear : Threading : Single : Branch
 Pasting special without hard returns   - newbiecoder - 09/01/2021 07:45 AM  
 Pasting special without hard returns   - Alan Cantor - 09/01/2021 09:34 AM  
 09/01/2021 07:45 AM
User is offline View Users Profile Print this message

Author Icon
New Member

Posts: 11
Joined: 04/29/2019

The topic summary says it all.  I paste from Adobe into word dozens of times a day but it adds hard returns all over the place.  I am wondering if there would be a script in Dragon that would pace without formatting, without the hard returns.

Thanks for your help.


 09/01/2021 09:34 AM
User is offline View Users Profile Print this message

Alan Cantor
Top-Tier Member

Posts: 4313
Joined: 12/08/2007

Maybe something like this, which strips away carriage returns and line feeds from the clipboard, and replaces them with spaces?

Sub Main
Let x = Clipboard
Let x = Replace(x, vbCrLf, " ")
Let x = Replace(x, vbCr, " ")
Let x = Replace(x, vbLf, " ")
Clipboard x

End Sub
32305 users are registered to the KnowBrainer Speech Recognition forum.
There are currently 0 users logged in.
The most users ever online was 12124 on 09/09/2020 at 04:59 AM.
There are currently 378 guests browsing this forum, which makes a total of 378 users using this forum.

FuseTalk Standard Edition v4.0 - © 1999-2022 FuseTalk™ Inc. All rights reserved.