Clipboard Function

irresistible007

Board Regular
Joined
Nov 24, 2005
Messages
173
Is there is anyway (i m sure, there is) to copy the text of Textbox to Clipboard.. ? please let me know
 
A bug? Don't know. Use Jaafar's idea or use this:

<table width="100%" border="1" bgcolor="White" style="filter:progid:DXImageTransform.Microsoft.Gradient(endColorstr='#C0CFE2', startColorstr='#FFFFFF', gradientType='0');"><tr><TD><font size="2" face=Courier New>  <font color="#0000A0">Private</font> <font color="#0000A0">Sub</font> CommandButton1_Click()
       <font color="#0000A0">With</font> Me.OLEObjects("TextBox1").Object
           .SelStart = 0
           .SelLength = Len(TextBox1.Text)
           .Copy
       <font color="#0000A0">End</font> <font color="#0000A0">With</font>
  <font color="#0000A0">End</font> <font color="#0000A0">Sub</font>
</FONT></td></tr></table><button onclick='document.all("103200616238359").value=document.all("103200616238359").value.replace(/<br \/>\s\s/g,"");document.all("103200616238359").value=document.all("103200616238359").value.replace(/<br \/>/g,"");window.clipboardData.setData("Text",document.all("103200616238359").value);'>Copy to Clipboard</BUTTON><textarea style="position:absolute;visibility:hidden" name="103200616238359" wrap="virtual">
Private Sub CommandButton1_Click()
With Me.OLEObjects("TextBox1").Object
.SelStart = 0
.SelLength = Len(TextBox1.Text)
.Copy
End With
End Sub</textarea>
 
Upvote 0

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

Forum statistics

Threads
1,214,947
Messages
6,122,411
Members
449,081
Latest member
JAMES KECULAH

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top