Ver Mensaje Individual
  #5 (permalink)  
Antiguo 20/07/2007, 11:11
Avatar de abrahamvj
abrahamvj
 
Fecha de Ingreso: julio-2006
Ubicación: Lima, Peru
Mensajes: 708
Antigüedad: 17 años, 10 meses
Puntos: 18
Re: ¿FORMATO CELDAS = FORMATO GRÁFICO (Colores)?

F G
7 Sexo Numero
8 Masculino 18
9 Femenino 7


Suponiendo que F8 y F9 tienen algun color, y que quieres un pie 3D, y que sus areas lleven el mismo color de las celdas: (OJO, esta hecho casi todo con la grabadora de amcros):

Sub Macro1()
'
' Macro1 Macro
' Macro grabada el 20/07/2007 por Abraham
'

'
Charts.Add
ActiveChart.ChartType = xl3DPieExploded
ActiveChart.SetSourceData Source:=Sheets("Hoja1").Range("F7:G9"), PlotBy:= _
xlColumns
ActiveChart.Location Where:=xlLocationAsObject, Name:="Hoja1"
With ActiveChart
.HasTitle = True
.ChartTitle.Characters.Text = "C"
End With

ActiveChart.SeriesCollection(1).Select
ActiveChart.SeriesCollection(1).Points(1).Select
With Selection.Interior
.ColorIndex = Range("F8").Interior.ColorIndex
.Pattern = xlSolid
End With
ActiveChart.SeriesCollection(1).Points(2).Select
With Selection.Interior
.ColorIndex = Range("F9").Interior.ColorIndex
.Pattern = xlSolid
End With
End Sub

Abraham

PD: Ya te habia dicho que se necesitaba macros, tienes que leer algo de eso para entender bien