Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() The following code comes from excel 2007 help Dim MyData as DataObject Private Sub CommandButton1_Click() 'Need to select text before copying it to Clipboard TextBox1.SelStart = 0 TextBox1.SelLength = TextBox1.TextLength TextBox1.Copy MyData.GetFromClipboard TextBox2.Text = MyData.GetText(1) End Sub Private Sub UserForm_Initialize() Set MyData = New DataObject TextBox1.Text = "Move this data to the " _ & "Clipboard, to a DataObject, then to " & "TextBox2!" End Sub The macro fails on the DIM statement indicating that it cannot find that data type. Is this a non-standard data type or does it originate from other add-ons TIA for any clues on building/finding it -- Ken "Started with Visicalc in 82" |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
User defined data type (losing its data) | Excel Programming | |||
Wrong data type returned from user-defined function | Excel Programming | |||
Workspace faux user-defined type not defined | Excel Programming | |||
User-defined data type; Error: Only User-defined types... | Excel Programming | |||
User defined data type | Excel Programming |