Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 151
Default Copy chart to clipboard

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Copy chart to clipboard

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

"Libby" wrote in message
...
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



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
Copy variable to clipboard Greg Glynn Excel Programming 3 January 8th 08 12:55 AM
Copy chart to clipboard - VBA Fredrik E. Nilsen Charts and Charting in Excel 11 April 27th 07 01:25 PM
Copy chart to clipboard - VBA Fredrik E. Nilsen Excel Programming 11 April 27th 07 01:25 PM
Transfer clipboard from Task pane clipboard(office?) content to Excel (windows?) clipboard? tskogstrom Excel Programming 2 March 6th 07 12:50 PM
Copy from clipboard? G Lam[_2_] Excel Programming 1 November 24th 04 09:05 AM


All times are GMT +1. The time now is 07:42 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"