Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default PlotArea picture from wbk?

The only method I can see for adding a picture to a plot area is...
ActiveChart.PlotArea.Fill.UserPicture
....which has a PictureFile argument that looks to a saved picture file.

Is there a way to programatically add a picture to the plot area using a
bitmap saved in the workbook?

Thanks.

Charley



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default PlotArea picture from wbk?

Charley,

Stephen Bullen produced a procedure for converting pictures stored in the
workbook into bitmaps:

"Creates a standard Picture object from whatever is on the clipboard.
This object can then be assigned to (for example) an Image control
on a userform. The PastePicture function takes an optional argument of
the picture type - xlBitmap or xlPicture."

I've used his code previously to capture pictures from a workbook and place
them on a userform. It might work for a chart.

Check out Stephen's website at
http://www.bmsltd.co.uk/Excel/Default.htm

and scroll down until you find PastePicture.

HTH

Tim

"Charley Kyd" wrote in message
...
The only method I can see for adding a picture to a plot area is...
ActiveChart.PlotArea.Fill.UserPicture
...which has a PictureFile argument that looks to a saved picture file.

Is there a way to programatically add a picture to the plot area using a
bitmap saved in the workbook?

Thanks.

Charley





  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 120
Default PlotArea picture from wbk?

Hi Charley,

Thank you for posting in MSDN managed newsgroup!

So far as I know, we can only specify one file stored in the disk for the plotarea with UserPicture. This is by design.

Furthermore, from my experience, if you want to use one stored BMP file from the workbook, you may need to save this picture into one BMP file in
the disk and then specify this picture to the plotarea.

Please feel free to let me know if you have any further questions.

Does this answer your question? Thank you for using Microsoft NewsGroup!

Wei-Dong Xu
Microsoft Product Support Services
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.


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
plotarea restore automatic sizing Werner News Charts and Charting in Excel 2 September 26th 11 04:01 PM
PlotArea question [email protected] Charts and Charting in Excel 1 May 1st 07 07:30 AM
Problem increasing .PlotArea.Height value Xavier Charts and Charting in Excel 4 August 11th 06 08:41 AM
Problem to modify the size of PlotArea Xavier Charts and Charting in Excel 1 April 24th 06 10:56 PM
Move/Resize PlotArea John Charts and Charting in Excel 3 June 10th 05 04:21 PM


All times are GMT +1. The time now is 02:25 PM.

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"