-
I'm writing a sort of a parsing program whereby there's 2 text boxes. The manipulated string will be displayed in the 2nd text box. And by pressing a button, the message will be paste to the clipboard. Coding is as below:
Text2.SelStart = 0
Text2.SelLength = Len(Text2.Text) - 1
ClipBoard.SetText Text2.SelText
Ok I manage to get it to be copied to the clipboard and I'm able to paste the text in notepad. But I'm unable to do so in WinWord! (Pretty strange)
Does anyone know the reason why and what I can do to overcome this?
Thanks for any help and solutions!! :)
-
I have had the same basic problem. I do not have a fix for it but what is happening on my end is when I'm usinging a rich text box and a plain text box. They seem to have their own seperate clipboards against windows. If you find out what has happend, please let me know too. Thanks
-
<?>
Try this..sometimes the clipboard for MSWord holds the
prior stuff and not the latest.
Code:
Option Explicit
Private Sub Command1_Click()
Dim x
x = "Does it really matter if anything happens here?"
Clipboard.Clear
Clipboard.SetText x
End Sub
-
HeSaidJoe's method finally solve the problem.
Thanks for all your help, guys!