Re: How to copy Clipboard to file?



Hi Dave.

Your question is not clear, when you say "file from the clipboard" do you
mean that the clipboard contains the data or a reference to the file name?

It doesn't contain any references (as far as I can see).

What I do:
In Excel I do Insert-Object-Create from file, no linking.

Now when I copy this object i can Ctrl-V-paste in within the explorer and
the file will be copied/created.

What I wanna do is to do this paste using code.
But the clipboardformat is not a file (IsClipboardFormatAvailable=15) like
copy a file directly wihtin Explorer, but being an embedded Object
(IsClipboardFormatAvailable=3).

If it's the former then you can do everything with the Clipboard object
built into VB6, if you are dealing with actual files then it gets a LOT
more interesting.

How would this code look like?

Thanks
Michi


.



Relevant Pages

  • Re: How to Copy/Paste to clipboard ??
    ... "Gadget" wrote: ... I can control class reference or object of my own ... I have set for the class that I want to serialize a attributes ... ' Copies myObject into the clipboard. ...
    (microsoft.public.dotnet.general)
  • Re: Copy variable to clipboard
    ... The following code will put the text of the active cell into the clipboard. ... In VBA, go to the Tools menu, choose References, and check "Microsoft Forms 2.0 Object Library". ... Range= MyString ...
    (microsoft.public.excel.programming)
  • Re: Clipboard formats, nesting, detecting/converting worksheet objects
    ... text (perhaps RTF or HTML). ... clipboard data before, by using CF_TEXT or CF_UNICODETEXT, I now find ... I can see an embedded object there. ... different clipboard format? ...
    (microsoft.public.word.conversions)
  • Re: How do I auto copy on "Got Focus"
    ... How do I load the MS Forms 2.0 library, and set a reference? ... David ... > which pastes the clipboard contents into the active control. ... > John Nurick ...
    (microsoft.public.access.modulesdaovba)
  • Clipboard contains one char more than selected
    ... find any reference - so please excuse and just point me to the right ... clipboard contains one character more than selected. ... Detlef ...
    (comp.lang.perl.tk)

Loading