Re: Inhalt einer Textbox ins Clipboard copieren

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Am Fri, 20 Jun 2008 14:26:02 -0700 schrieb Wilfried Kersting:

Entschuldige, dass ich noch einmal Nachhake. Ich brauche den Text im
Clipboard um ihn in einn Internetformular einzufügen.
TextBox1.value Copy liefert den Laufzeitfehler 424: Objekt erforderlich
TextBox1.Text.Copy den Compilerfehler Ungültiger Bezeichner
So geht das also auch nicht

sorry, das war ein Schnellschuss. Das mit dem Clipboard ist nicht ganz
so einfach. Probiere es mal so:
Sub Test()
Dim myString As String
Dim myData As DataObject

Set myData = New DataObject
myString = ActiveSheet.TextBox1.Text
myData.SetText myString
myData.PutInClipboard

myData.GetFromClipboard
Range("C6") = myData.GetText
End Sub


Mit freundlichen Grüssen
Claus Busch
--
Win XP Prof SP2 / Vista Ultimate
Office 2003 SP2 / 2007 Ultimate
.



Relevant Pages

  • Re: Copy variable to clipboard
    ... clipboard ... Range= MyString ... Dim mystring As New DataObject ...
    (microsoft.public.excel.programming)
  • Re: GetFromClipboard "verliert" die Hyperlinkinformationen
    ... Ist ein Hyperlink im Clipboard wirklich als Text abgelegt? ... Dim MyData As DataObject ...
    (microsoft.public.de.access)
  • Find Dialogue Box
    ... Create a macro to take that word from the clipboard and find it in the text ... When I double click the REC macro button and then paste the selected word ... I think what I need is a variable, MyString As String ...
    (microsoft.public.word.vba.beginners)
  • Why does this not work ???
    ... $mystring = filesize; ... echo $mystring ... $mydata = fread); ... It seems every PHP snippet I use, does not seem to work, without some ...
    (alt.php)