Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
D.2 D.2 is offline
external usenet poster
 
Posts: 8
Default DataObject and cliboard

Hello,

I tryed to use those lines:

With New DataObject
..SetText "my text"
..PutInClipboard
End With

It's suppose tu put a text in the clipboard

The point is that vba said "DataObject" is a type not defined

What is needed to make excel accept this DataObject.
The VBA-HELP uses it "as it" without any comment about that.

Please help.
Thank you.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default DataObject and cliboard


DeeToo,

Actually it's a member of msforms library, not from native vba.

you can use it without a userform but you'll need a reference
to Microsoft Forms Object Library. The reference is automatically added
to a workbook when you insert a Userform from VBeditor's Insert menu.


--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


D.2 wrote :

Hello,

I tryed to use those lines:

With New DataObject
.SetText "my text"
.PutInClipboard
End With

It's suppose tu put a text in the clipboard

The point is that vba said "DataObject" is a type not defined

What is needed to make excel accept this DataObject.
The VBA-HELP uses it "as it" without any comment about that.

Please help.
Thank you.

  #3   Report Post  
Posted to microsoft.public.excel.programming
D.2 D.2 is offline
external usenet poster
 
Posts: 8
Default DataObject and cliboard


Actually it's a member of msforms library, not from native vba.

you'll need a reference to Microsoft Forms Object Library. The reference is automatically added
to a workbook when you insert a Userform from VBeditor's Insert menu.


Ok, cool

I added a userform then deleted it just after.
But the reference stay !

Hard to know when you just reed the VBA Help ! this seems to be a
"regular" VBA stuff...
  #4   Report Post  
Posted to microsoft.public.excel.programming
D.2 D.2 is offline
external usenet poster
 
Posts: 8
Default DataObject and cliboard

Thank you !
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default DataObject and cliboard

You can also get added information at Chip Pearson's site
http://www.cpearson.com/excel/clipboar.htm

--
Regards,
Tom Ogilvy

"keepITcool" wrote in message
ft.com...

DeeToo,

Actually it's a member of msforms library, not from native vba.

you can use it without a userform but you'll need a reference
to Microsoft Forms Object Library. The reference is automatically added
to a workbook when you insert a Userform from VBeditor's Insert menu.


--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


D.2 wrote :

Hello,

I tryed to use those lines:

With New DataObject
.SetText "my text"
.PutInClipboard
End With

It's suppose tu put a text in the clipboard

The point is that vba said "DataObject" is a type not defined

What is needed to make excel accept this DataObject.
The VBA-HELP uses it "as it" without any comment about that.

Please help.
Thank you.





  #6   Report Post  
Posted to microsoft.public.excel.programming
D.2 D.2 is offline
external usenet poster
 
Posts: 8
Default DataObject and cliboard


http://www.cpearson.com/excel/clipboar.htm



thank you
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error using DataObject to get clipboard data stocktsi Excel Discussion (Misc queries) 4 April 29th 09 02:54 PM
How delete the cliboard Aldo Miele Excel Programming 3 January 15th 04 02:21 PM
Can't Dim As DataObject?? Ed[_9_] Excel Programming 3 January 12th 04 09:35 PM


All times are GMT +1. The time now is 07:05 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"