Using Clipboard via vba (Excel)? 
Author Message
 Using Clipboard via vba (Excel)?

Dear all,
How can I use the object Cliboard in a VBA project (under excel) ?
Using commands like temporary pasting in cells via activecell.pastespecial
... is not a solution ?
I really need to use the object in the same way as in VB.
Can someone help me ?
Thanks
Vblover


Sun, 22 Jun 2003 18:47:36 GMT  
 Using Clipboard via vba (Excel)?

Set a reference to the MSForms library (which is there automatically if you
have a user form in the project), and use the DataObject object.

Dim DataObj As DataObject
Set DataObj = New DataObject
DataObj.SetText "this is a string"
DataObj.PutInClipboard

--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC


Quote:
> Dear all,
> How can I use the object Cliboard in a VBA project (under excel) ?
> Using commands like temporary pasting in cells via activecell.pastespecial
> ... is not a solution ?
> I really need to use the object in the same way as in VB.
> Can someone help me ?
> Thanks
> Vblover



Sun, 22 Jun 2003 23:58:29 GMT  
 Using Clipboard via vba (Excel)?
Chip,
Thanks a lot ! It works 100%
Vblover


Mon, 23 Jun 2003 17:40:19 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Using Subs and Classes in Excel via VBA

2. SSDBGrid und Excel, data exchange via clipboard ?

3. Recordset to Excel Via Clipboard?

4. Clearing Clipboard Contents From Excel VBA

5. Passing keystrokes to DOS via Windows clipboard using VB

6. Compatibility Problem Using MS Excel 97 VBA on Excel 2000/XP - Causes crashes

7. Running VBA code in EXcel from VB6 using EXcel Objects

8. Using the clipboard throu vba

9. using vba to copy to clipboard

10. Help for getting rid of the contents in clipboard(office) using VBA

11. Clipboard using VBA

12. Copy to clipboard using VBA

 

 
Powered by phpBB® Forum Software