+ Reply to Thread
Results 1 to 2 of 2

Embedding pictures on data points of a chart

  1. #1
    syam1919@gmail.com
    Guest

    Embedding pictures on data points of a chart

    Hi,

    Im trying to embedded the pictures on data points of a chart through
    VBA using following code.

    ActiveChart.SeriesCollection(1).Points(4).DataLabel.Fill.UserPicture
    PictureFile:="C:\Syam\PptPics\Picture4.jpg" ',
    PictureFormat:=xlStackScale, PictureStackUnit:=4 ,
    PicturePlacement:=xlAllFaces

    But im facing error.
    If if using the code after removing the
    ******************
    PictureFormat:=xlStackScale, PictureStackUnit:=4 ,
    PicturePlacement:=xlAllFaces
    *****************

    in the abovecode then the picture can be imported with out any error.

    Can anybody tell me how to proceed this.


  2. #2
    Andy Pope
    Guest

    Re: Embedding pictures on data points of a chart

    Hi,

    It would appear you are trying to use the picture stack option that is
    applicable to column and bar charts on a data label. You can not do
    this. You can apply a picture to the data labels background but the
    other parameters and invalid.

    Cheers
    Andy


    syam1919@gmail.com wrote:
    > Hi,
    >
    > Im trying to embedded the pictures on data points of a chart through
    > VBA using following code.
    >
    > ActiveChart.SeriesCollection(1).Points(4).DataLabel.Fill.UserPicture
    > PictureFile:="C:\Syam\PptPics\Picture4.jpg" ',
    > PictureFormat:=xlStackScale, PictureStackUnit:=4 ,
    > PicturePlacement:=xlAllFaces
    >
    > But im facing error.
    > If if using the code after removing the
    > ******************
    > PictureFormat:=xlStackScale, PictureStackUnit:=4 ,
    > PicturePlacement:=xlAllFaces
    > *****************
    >
    > in the abovecode then the picture can be imported with out any error.
    >
    > Can anybody tell me how to proceed this.
    >


    --

    Andy Pope, Microsoft MVP - Excel
    http://www.andypope.info

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1