Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
mac
excel.macintosh
frontpage.mac
inetexplorer.mac
internet.mail.mac
internet.news.mac
mac.entourage
mac.excel
mac.explorer
mac.mediaplayer
mac.messenger
mac.office
mac.otherproducts
mac.powerpoint
mac.rdc
mac.virtualpc
mac.word
macintosh.general
media.player.mac
messenger.mac
office.mac
office.mac.entourage
outlook.mac
outlookexpress.mac
win2000.macintosh
windowsnt.mac
word.macword2001
  
 
date: Fri, 9 May 2008 12:02:53 -0700 (PDT),    group: microsoft.public.excel.macintosh        back       


Setting chart series color   
I am running Excel 2004 for the Mac on OSX 10.5.2.

I would like to set the color of a chart series from RGB values stored
in cells of the worksheet.

I recorded a macro to get this piece of code:

ActiveSheet.ChartObjects("Chart 1").Activate
    ActiveChart.ChartArea.Select
    ActiveChart.SeriesCollection(7).Select
    With Selection.Border
        .Color = RGB(0, 0, 0)
        .LineStyle = xlNone
        .Transparency = 0
    End With
    With Selection
        .MarkerBackgroundColor = RGB(252, 243, 5)
        .MarkerForegroundColor = RGB(252, 243, 5)
        .MarkerStyle = xlSquare
        .Smooth = False
        .MarkerSize = 5
        .Shadow = False
        .MarkerTransparency = 0
    End With

The given RGB values are from the color picker, I would read them in
from the worksheet.

The problem is that if I manually change the color, and then run the
macro the color remains the one that I manually chose not the one
prescribed in the macro. If I change the Markersize to something other
than 5, that change is made. What gives????
date: Fri, 9 May 2008 12:02:53 -0700 (PDT)   author:   unknown

Re: Setting chart series color   
On May 9, 3:02 pm, "brujol...@gmail.com"  wrote:
> I am running Excel 2004 for the Mac on OSX 10.5.2.
>
> I would like to set the color of a chart series from RGB values stored
> in cells of the worksheet.
>
> I recorded a macro to get this piece of code:
>
> ActiveSheet.ChartObjects("Chart 1").Activate
>     ActiveChart.ChartArea.Select
>     ActiveChart.SeriesCollection(7).Select
>     With Selection.Border
>         .Color = RGB(0, 0, 0)
>         .LineStyle = xlNone
>         .Transparency = 0
>     End With
>     With Selection
>         .MarkerBackgroundColor = RGB(252, 243, 5)
>         .MarkerForegroundColor = RGB(252, 243, 5)
>         .MarkerStyle = xlSquare
>         .Smooth = False
>         .MarkerSize = 5
>         .Shadow = False
>         .MarkerTransparency = 0
>     End With
>
> The given RGB values are from the color picker, I would read them in
> from the worksheet.
>
> The problem is that if I manually change the color, and then run the
> macro the color remains the one that I manually chose not the one
> prescribed in the macro. If I change the Markersize to something other
> than 5, that change is made. What gives????

I forgot to sign off

Bror Hultgren
date: Fri, 9 May 2008 12:09:21 -0700 (PDT)   author:   unknown

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us