Help - Search - Members - Calendar
Full Version: Paste from memory using a Batch file
Vault9 Forums > Tech Den > Binary Refinery > Smooth Operators

Custom Search
Joseph Growney
I have embedded files in an Excel spreadsheet that I would like to save to disk using a macro. I can handle the OLE Objects if they are Excel files but not others. I tried copying the object into memory and that works. I can then right-click in a folder and paste the file. Is there a way to do the paste using a batch file.

Better yet, is there a way to save the embedded OLE object to disk using VB code within Excel?

Thanks in advance,

Joseph
#linux
Hi,

you can try this code.

Set objHTML = CreateObject("htmlfile")
ClipboardText = objHTML.ParentWindow.ClipboardData.GetData("text")
MsgBox ClipboardText
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Custom Search
Invision Power Board © 2001-2008 Invision Power Services, Inc.