PC Review


Reply
Thread Tools Rate Thread

Copy a File to the Clipboard

 
 
ansgar
Guest
Posts: n/a
 
      26th Aug 2009
Hello,

i like to copy a file programmatically to the clipboard.
I mean the programmatically procedure to copy a file (not the content)
as the same command inside MS-Explorer -> right-click -> copy.

Thanks all.

Balmi
 
Reply With Quote
 
 
 
 
Gord Dibben
Guest
Posts: n/a
 
      26th Aug 2009
See VBA help on "filecopy"

What do you want to do with the copied file BTW?


Gord Dibben MS Excel MVP

On Wed, 26 Aug 2009 12:56:37 -0700 (PDT), ansgar
<(E-Mail Removed)> wrote:

>Hello,
>
>i like to copy a file programmatically to the clipboard.
>I mean the programmatically procedure to copy a file (not the content)
>as the same command inside MS-Explorer -> right-click -> copy.
>
>Thanks all.
>
>Balmi


 
Reply With Quote
 
ansgar
Guest
Posts: n/a
 
      27th Aug 2009
Hello Gord,

thanks for your answer, but filecopy only copies the file to another
location.

What I want to do:
My Makro saves a Chart as a Image-file to a temporary folder and now i
need to copy the created file into the clipboard.
The reason is, that the user now can insert directly the image over
CTRL+V into Word, Powerpoint, ... or into a another folderlocation as
a file.

Balmi


> On Aug 26, 11:22*pm, Gord Dibben <gorddibbATshawDOTca
> wrote:
> See VBA help on "filecopy"
>
> What do you want to do with the copied file BTW?



 
Reply With Quote
 
ansgar
Guest
Posts: n/a
 
      31st Aug 2009
The solution: http://www.vb-hellfire.de/download/o...boardfiles.zip

many thanks to: Thorsten Dörfler (Microsoft MVP Visual Basic)


- Balmi



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy a PDF file (not contents) to clipboard lunchroom Microsoft C# .NET 6 17th Aug 2009 02:56 PM
How do I copy file path to clipboard? =?Utf-8?B?Q2hyaXN0aW5h?= Windows XP General 10 5th Feb 2007 07:04 PM
copy a gif file to clipboard Thomas Microsoft VB .NET 2 4th Jan 2007 11:31 PM
Clipboard gets empty by itself, cleared clipboard, copy paste doesn't work, outlook clears clipboard, problems with clipboard - possible solution Jens Hoerburger Microsoft Outlook 0 24th Aug 2006 02:44 PM
copy file to clipboard =?Utf-8?B?RWxhZA==?= Microsoft Access VBA Modules 5 10th Jul 2005 04:38 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:23 AM.