Anda di halaman 1dari 2

Notes:

1 Sheet1 contains 4 charts that require be copied to a PowerPoint Presentation (PPT), each on individual slides.
Charts must be copied as "objects" to PPT (ie. not as pictures).

3 Chart and Axis Titles are built using formulas or specific cell contents. I do this because I must prepare multi-laguage versions of the same charts repetitively.
By doing so, all I have to do is translate certian "cells" of my worksheet to get these translations done expediently.

4 Jon Peltier's macro to copy from Excel to PPT "as-is" works great, however there is a caveat in my case:
Given my chart titles are "formulas", running the macro changes these to "plain text", which defeats my procedure for quick translations.

I have tried to adjust the original macro code to support copying the "charts" themselves (ie. Commenting out the "copy as Picture" portion), including:
...
ActiveSheet.ChartObjects(iCht).Activate
ActiveChart.ChartArea.Copy
...
When I run the modified macro, all charts get placed in seperate slides in PPT. However, the title of the "first" chart that is copied is blank while the remaining charts titles
get copied correctly.

Additionally, I can't figure how to change the "..get chart title..." part of the code, to work in my particular case as noted in (4) above. I understand I would
have to copy the chart -together with it's title- to PPT and then -in PPT- remove the chart's title and copy it to the slide's title. This is the tricky part for me because I don't know
that much of VBA and cannot find a clear reference what the "chart" object is called in PPT (is it "Shape", "ShapeRange"?) nor do I know how to specify the chart's title in PPT.
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z AA AB AC AD AE AF AG AH AI AJ AK AL
2
3 This range/area serves to plot 2 arbitrary horizontal lines in charts These cells hold the "Series
4 1 thru 4, following the solution found in Names" and Axis Titles used in
5 charts 1 thru 4.
http://peltiertech.com/Excel/Charts/AddLineHorzSeries.html
6 This formula builds the chart #1's Title: This formula builds the chart #3's Title:
7 ="Resumen Descuento x Concesionarios - " & "Sep/2010 " ="Resumen Descuento x Concesionarios - " & "Oct/2010 "
8
9
&CHAR(10)& "Planes: M, T=1a y T>1a" &CHAR(10)& "Planes: M, T=1a y T>1a"
10 Valor Neto Factura
11 Dscto % Concesionario % Descuento
12 Years (All) US$ Miles Resumen Descuento x Concesionarios - Sep/2010 Planes: M, T=1a y T>1a Resumen Descuento x Concesionarios - Oct/2010 Planes: M, T=1a y T>1a
13 Region (All) Tope%Dscto M/T>1a Tope%Dscto T=1a
14 Provincia (All) 0 20% 0 22% This range serves to CHART #1 CHART #3
15 ck_RubroTipo (All) 1 20% 1 22% place the "points" line
16 cab_aseg_nombrecorto (All)
The factor is 1/#bars.
17 ck_cab_segmento (All) Resumen Descuento x Concesionarios - Sep/2010 Resumen Descuento x Concesionarios - Oct/2010
18 0 1 0 1
19 Months Data Planes: M, T=1a y T>1a Planes: M, T=1a y T>1a

21,4%

21,3%
21,2%
21,2%
800 800

20,9%
20,8%
20,7%

20,3%
20 Sep Oct

20,2%
20,2%

18,9%
Rango 22% 22%

18,2%
18,0%

17,7%

17,5%
17,2%
Sum of Sum of Total Sum of

17,0%
16,8%
Tope

16,0%
ValNetoItemFactnet ValNetoItemFactnet ValNetoItemFactnetoN Total Sum of 20% 20%

15,2%

15,2%
600 600

14,7%
14,7%

14,6%
14,4%
14,0%
21 cab_ConcesNombre oNC Sum of Dscto%_Fact oNC Sum of Dscto%_Fact C Dscto%_Fact Dscto%
22 AUTOCONSA 756.309,77 15,2% 737.893,09 15,2% 1.494.202,87 15,2% 1 0,03333

US$ Miles

US$ Miles
11,3%
0,15 0,15
23 ASSA 345.418,72 9,2% 184.003,46 14,4% 529.422,18 11,1% 2 0,10000

9,2%
24 INDUAUTO 190.097,53 17,2% 171.757,13 17,5% 361.854,66 17,3% 3 0,16667 400 400
25 IMBAUTO 147.926,49 14,0% 157.010,58 14,6% 304.937,07 14,3% 4 0,23333
26 PROAUTO 149.076,83 20,2% 146.934,46 20,3% 296.011,29 20,2% 5 0,30000
27 E. MAULME 98.949,33 18,0% 95.415,72 18,9% 194.365,05 18,5% 6 0,36667 200 200
28 AUTOLANDIA 95.975,68 14,7% 83.937,37 14,7% 179.913,05 14,7% 7 0,43333

0,0%

0,0%
29 METROCAR 47.109,92 16,8% 131.203,48 17,0% 178.313,40 16,9% 8 0,50000
30 ECUA-AUTO 100.293,40 11,3% 70.591,99 16,0% 170.885,38 13,3% 9 0,56667
31 MIRASOL 58.756,00 17,7% 75.662,38 18,2% 134.418,38 18,0% 10 0,63333 0 0 0 0

INDUAUTO

IMBAUTO

INDUAUTO
AUTOLASA
E. MAULME

METROCAR

IMBAUTO

METROCAR

AUTOLASA
MIRASOL

E. MAULME

MIRASOL
CENTRALCAR

CENTRALCAR
PROAUTO

ASSA

PROAUTO
ASSA

ANGLO

ECUA-AUTO
ECUA-AUTO

LAVCA

LAVCA

ANGLO
AUTOLANDIA
AUTOCONSA

AUTOLANDIA

AUTOCONSA
32 LAVCA 57.156,98 21,2% 56.671,98 21,4% 113.828,96 21,3% 11 0,70000

VALLEJO ARAUJO
VALLEJO ARAUJO
33 AUTOLASA 53.602,07 21,2% 51.313,70 20,8% 104.915,78 21,0% 12 0,76667
34 ANGLO 40.727,09 20,7% 24.046,38 20,9% 64.773,47 20,7% 13 0,83333
35 VALLEJO ARAUJO 32.634,32 20,2% 25.242,95 21,3% 57.877,27 20,7% 14 0,90000
36 CENTRALCAR 27.689,75 0,0% 18.158,10 0,0% 45.847,85 0,0% 15 0,96667
37 Grand Total 2.201.723,88 15,2% 2.029.842,78 16,4% 4.231.566,66 15,8%
38
Valor Neto Factura Tope%Dscto M/T>1a Tope%Dscto T=1a Dscto % Concesionario Valor Neto Factura Tope%Dscto M/T>1a Tope%Dscto T=1a Dscto % Concesionario
39
40
41
42 This formula builds the chart #2's Title: This formula builds the chart #4's Title:
43
="Resumen Descuento x Aseguradora - " & "Sep/2010 " &CHAR(10)& ="Resumen Descuento x Aseguradora - " & "Oct/2010 " &CHAR(10)&
44
45 "Planes: M, T=1a y T>1a" "Planes: M, T=1a y T>1a"
46
47
48
49 Resumen Descuento x Aseguradora - Sep/2010 Planes: M, T=1a y T>1a Resumen Descuento x Aseguradora - Oct/2010 Planes: M, T=1a y T>1a
50 Years (All) CHART #2 CHART #4
51 Region (All)
52 Provincia (All)
53
54
ck_RubroTipo
ck_cab_segmento
(All)
(All)
Resumen Descuento x Aseguradora - Sep/2010 Resumen Descuento x Aseguradora - Oct/2010
0 1 0 1
55 cab_ConcesNombre (All)
Planes: M, T=1a y T>1a Planes: M, T=1a y T>1a

22,0%
700 700

20,8%
56

19,8%

19,3%
19,2%

19,2%
22% 22%

18,5%
57 Months Data

18,4%

18,4%

18,3%
17,8%
17,8%

17,7%
17,4%

17,5%

17,4%
17,0%
16,9%

16,9%

16,9%

16,8%
58 Sep Oct

16,6%

16,4%
16,3%
16,2%
16,1%

16,0%
16,0%

15,9%
15,9%
15,8%
20% 20%

15,6%

15,5%

15,5%

15,1%
14,9%
14,9%
Rango 525

14,8%
525

14,7%

14,7%
14,6%

14,4%
14,4%

14,1%

14,0%
Sum of Sum of Total Sum of

13,5%
13,5%
Tope

12,4%
ValNetoItemFactnet ValNetoItemFactnet ValNetoItemFactnetoN Total Sum of

11,7%
US$ Miles

US$ Miles
0,15 0,15
oNC Sum of Dscto%_Fact oNC Sum of Dscto%_Fact C Dscto%_Fact Dscto%

10,0%
59 cab_aseg_nombrecorto
350 350

9,0%

8,5%
60 QBE COLONIAL 507.911,49 16,0% 460.777,68 16,2% 968.689,18 16,1% 1 0,01852
61 EQUINOCCIAL 463.534,26 13,5% 398.786,72 16,3% 862.320,98 14,8% 2 0,05556
62 BOLIVAR 249.311,33 15,6% 253.931,99 17,4% 503.243,32 16,5% 3 0,09259
63 RIO GUAYAS 189.224,68 16,1% 165.650,46 16,9% 354.875,14 16,5% 4 0,12963 175 175
64 ASEG DEL SUR 162.111,39 13,5% 132.789,28 14,9% 294.900,67 14,1% 5 0,16667

0,0%
0,0%
65 UNIDOS 120.054,57 14,6% 126.928,17 15,9% 246.982,73 15,3% 6 0,20370
66 AIG 109.653,85 18,5% 64.044,45 16,6% 173.698,30 17,8% 7 0,24074
67 SUCRE 85.313,11 14,9% 61.417,30 16,9% 146.730,42 15,7% 8 0,27778 0 0 0 0

PANAMERICANA

PANAMERICANA
AUTODELTA

CONFIANZA

AUTODELTA
CONFIANZA
ASEG DEL SUR

CERVANTES

EQUINOCCIAL

ASEG DEL SUR

CERVANTES
EQUINOCCIAL

ECUAT SUIZA

ALIANZA

GENERALI

CENSEG

QBE COLONIAL

ECUAT SUIZA

ALIANZA

GENERALI
QBE COLONIAL

RIO GUAYAS

AIG

SUCRE

CENSEG

HISPANA
HISPANA

RIO GUAYAS

VAZ SEGUROS
VAZ SEGUROS

ACE

AIG

SUCRE
BOLIVAR

INTEROCEANICA

CONSTITUCION

CONSTITUCION

ACE
CONDOR

COOPSEGUROS

BOLIVAR

ORIENTE
UNIDOS

ORIENTE

LATINA

MAPFRE ATLAS

LATINA

INTEROCEANICA

MAPFRE ATLAS

CONDOR

COOPSEGUROS
UNIDOS
SWEADEN

SWEADEN
68 ORIENTE 36.760,46 11,7% 60.280,80 14,7% 97.041,27 13,6% 9 0,31481
69 LATINA 39.631,97 14,4% 40.786,63 17,7% 80.418,59 16,1% 10 0,35185
70 PANAMERICANA 31.798,68 14,8% 29.772,80 16,4% 61.571,48 15,6% 11 0,38889
71 CERVANTES 31.451,14 14,1% 20.186,40 15,5% 51.637,54 14,7% 12 0,42593
72 ECUAT SUIZA 19.722,58 15,8% 29.678,72 15,1% 49.401,30 15,3% 13 0,46296
73 ALIANZA 14.261,06 19,2% 33.003,22 16,8% 47.264,27 17,6% 14 0,50000
74 INTEROCEANICA 32.510,08 14,7% 14.590,91 14,4% 47.100,99 14,6% 15 0,53704 Valor Neto Factura Tope%Dscto M/T>1a Tope%Dscto T=1a Dscto % Concesionario Valor Neto Factura Tope%Dscto M/T>1a Tope%Dscto T=1a Dscto % Concesionario
75 SWEADEN 14.322,20 14,0% 26.272,40 17,8% 40.594,60 16,5% 16 0,57407
76 MAPFRE ATLAS 23.547,37 15,9% 14.705,65 17,5% 38.253,01 16,5% 17 0,61111
77 VAZ SEGUROS 18.864,80 20,8% 11.910,90 19,8% 30.775,71 20,4% 18 0,64815
78 CONDOR 11.435,02 19,2% 17.529,68 18,4% 28.964,69 18,7% 19 0,68519
79 GENERALI 11.747,27 16,0% 13.425,06 19,3% 25.172,33 17,8% 20 0,72222
80 COOPSEGUROS 12.183,37 16,9% 10.551,75 12,4% 22.735,13 14,9% 21 0,75926
81 CONSTITUCION 1.620,43 15,5% 18.612,00 18,4% 20.232,43 18,2% 22 0,79630
82 CENSEG 2.834,50 9,0% 15.005,34 17,0% 17.839,84 15,9% 23 0,83333
83 ACE 10.544,28 17,8% 5.903,31 18,3% 16.447,58 18,0% 24 0,87037
84 HISPANA 1.130,17 22,0% 3.107,82 17,4% 4.237,99 18,6% 25 0,90741
85 CONFIANZA 243,85 8,5% 0,00 0,0% 243,85 8,5% 26 0,94444
86 AUTODELTA 0,00 0,0% 193,32 10,0% 193,32 10,0% 27 0,98148
87 Grand Total 2.201.723,88 15,2% 2.029.842,78 16,4% 4.231.566,66 15,8%
88
89

Anda mungkin juga menyukai