Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default How to save a ole object from the clipboard? (Do Ctlr+V)

Hello Forum,

my workbook uses an external dll. I want to include within my workbook.
I have added it with Insert-Object-FromFile on a worksheet. My
problem is how to save it to harddisk.
If a make Ctrl+V the dll would be saved. But how can I do this per Api?

This is the code that creates the ole Object:
Dim oOle As OLEObjects
Dim o As OLEObject

Set oOle = ThisWorkbook.Worksheets(1).OLEObjects
Set o = oOle.Add(, "H:\Pers\SharpDevelop\Hello\Hello.dll", False,
False)
o.Verb xlOpen ' Opens the old Win3.11 Editor
o.Copy ' Copies it to the clipboard, now I can place the dll with
Ctrl+V to the desktop.



Best wishes

Peter

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default How to save a ole object from the clipboard? (Do Ctlr+V)

I'm writing the cipboard data as a byte array to hd. Task is done.

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
ctlr+page up and ctlr+page down in 2007 Cmdr Slam Excel Discussion (Misc queries) 5 June 4th 08 05:56 PM
How do I save the items listed on the clipboard? levi New Users to Excel 1 October 27th 06 10:21 PM
Is it possible to save work on the clipboard and reuse ? nina Excel Worksheet Functions 1 January 18th 06 05:44 AM
save clipboard as wmf Erich Neuwirth Excel Programming 1 January 20th 04 03:49 PM
add VB6 Clipboard object John A Grandy Excel Programming 3 July 20th 03 11:52 PM


All times are GMT +1. The time now is 02:34 AM.

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"