Property
10.10.2008 23:38:29
Oliver
Ich baue mir über eine Schleife beliebig viele TextBoxen in einer Userform aus
z.B
for ArrayIndex = 1 to 10
Set MyTextBox = UserForm1.Controls.Add("Forms.Textbox.1", "txtKomponent" & ArrayIndex, Visible)
next
nun möchte ich das BeforeDropOrPaste Ereignis dieser MyTEXTBox abfangen
Wie bekomme ich diese Standard-Fuktion (unten dargestellt) auf eine MyTextBox
Ich weiß dass man dazu Propertys braucht; aber wie geht das?
Private Sub TextBox1_BeforeDropOrPaste(ByVal Cancel As MSForms.ReturnBoolean, ByVal Action As _
MSForms.fmAction, ByVal Data As MSForms.DataObject, ByVal X As Single, ByVal Y As Single, ByVal Effect As MSForms.ReturnEffect, ByVal Shift As Integer)
Msgbox "Text wurde ausgeschnitten"
End Sub
Vielen Dank im Vorraus
Oliver Breith