Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / May 2008

Tip: Looking for answers? Try searching our database.

Copy chart to clipboard

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Libby - 11 May 2008 12:12 GMT
Hi I've been using

Dim x as DataObject
x.SetText "Mytext"
x.PutInClipboard

to place various thing in the clipboard to allow them to be easily pasted
elsewhere.

Does anyone know how to apply this to charts?

I have a worksheet containing two charts, both of which I would like to be
copied to the clipboard when a button is clicked so that they can be pasted
as a single metafile into another document.

Many thanks in advance.

Libby
Peter T - 12 May 2008 10:59 GMT
Hi Libby,

The DataObject only accepts text.

Record a macro, with the chart selected, on the main menu hold Shift and
select Edit, Copy Picture.
Experiment with the top two options but to copy as a metafile ensure the
Format option is Picture.

Tidy up the recorded macro.

Not sure what you mean by copy two charts then paste as a single metafile.
You will need to copy paste one at a time, maybe to can combine the two
images as one in the other application.

Regards,
Peter T

> Hi I've been using
>
[quoted text clipped - 14 lines]
>
> Libby
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.