Om om om ane bikinin di VBA make XL03 oom .....kodingannya kayak gini oom : ' /*********** ' Created By : puthut_vai@yahoo. ' on 25 Oktober 2009 || Jakarta ' Nama Modul : Mod Grafik ' /*********** Option Explicit Dim wShitMaster As Worksheet Dim wShitSementara As Worksheet Dim strMingguAxis1 As String ' ----------- Deklarasi Buat Bikin Grafik ------------ Dim strYAxis1 As String Dim strMingguAxis2 As String Dim strYAxis2 As String Dim vJumlahBaris As Long Dim ChartSementara As Chart Sub EnakOOm() Application. Set wShitMaster = Worksheets(" ' ------------ ' Tujuan Disini : ' Membuat Shit Sementara yang berguna menampung hasil kopi spesial dari 1/2 Work day ' Dan Sort Descending Set wShitSementara = Worksheets.Add wShitMaster. wShitMaster. Selection.Copy wShitSementara. With wShitSementara .Range("E1") Selection.PasteSpec Operation:=xlNone, SkipBlanks:= .Application. .Range("E1") OrderCustom: End With wShitMaster. wShitMaster. Selection.Copy wShitSementara. With wShitSementara .Range("D1") Selection.PasteSpec Operation:=xlNone, SkipBlanks:= .Application. End With ' ------------ ' PROSES PEMBUATAN GRAFIK ------------ vJumlahBaris = wShitSementara. ' SET RANGE GRAFIKNYA ---- strMingguAxis1 = "G24:AT24" strYAxis1 = "F27:AT27" strYAxis2 = "E1:E" & vJumlahBaris strMingguAxis2 = "D1:D" & vJumlahBaris wShitSementara. ' TAMBAH CHART DI WORKBOK Set ChartSementara = Charts.Add With ChartSementara .ChartType = xlXYScatterLines ' TIPE CHART ' .ChartType = xlXYScatterLinesNoM ' set warna GRAFIK BACK GRUND .PlotArea.Interior. ' */ HABISIN DATA SERIES ------------ Do While .SeriesCollection. .SeriesCollection( Loop ' */ TAMBAH DATA SERIES ------------ ' 1. SERIES 1 : JUMLAH KUMULATIF PER MINGGU .SeriesCollection. With .SeriesCollection( .Border.Color = RGB(255, 0, 0) .Name = "Cum/Week" .XValues = wShitMaster. .Smooth = True .Values = wShitMaster. End With ' 2. SERIES 2 : JUMLAH 1/2 : DURASI 1/2 X TOT WEEK .SeriesCollection. With .SeriesCollection( .Border.Color = RGB(78, 255, 0) .Name = "1/2xWeek" .XValues = wShitSementara. .Values = wShitSementara. End With End With End Sub File Terlampir omm jangan lupa Setingan Srikiti VBA nya oomm... - ^ Puthut Wibowo ^ - || puthut_vai@yahoo. Com --- On Fri, 10/16/09, Gito <gito.gisto@gmail.
|
__._,_.___
+-:: XL-mania ::::::::::::::::::::----------------------------------+
| Moderasi akan lambat minggu ini, momods pergi ke tempat jauh |
| http://www.facebook.com/group.php?gid=37671048001&ref=mf |
+-------------------------------------------------------------------+
| DILARANG : MLM, money game, OOT, iklan tanpa izin, SARA, testing, |
| pembicaraan pribadi, one line message, melecehkan, tidak sopan. |
+-------------------------------------------------------------------+
| Buat subjek yang kreatif, jangan : "tanya", "help", "mohon bantu" |
| Usahakan besar attachment < 200 kb. Gunakan winzip jika perlu. |
+-------------------------------------------------------------------+
| Ajak teman-teman Anda bergabung dengan mengirim e-mail kosong ke |
| XL-mania-subscribe@yahoogroups.com atau kirimkan mereka file dari |
| http://groups.yahoo.com/group/XL-mania/files/Promotion/ |
+-------------------------------------------------------------------+
| Berikan testimoni di : http://www.friendster.com/xlmania atau... |
| http://www.xl-mania.com/2008/06/testimoni-xl-mania.html |
+-------------------------------------------------------------------+
| Message lama ada di : |
| http://groups.yahoo.com/group/XL-mania/messages [perlu yahoo id] |
| http://www.mail-archive.com/xl-mania@yahoogroups.com |
+-------------------------------------------------------------------+
| Moderasi akan lambat minggu ini, momods pergi ke tempat jauh |
| http://www.facebook.com/group.php?gid=37671048001&ref=mf |
+-------------------------------------------------------------------+
| DILARANG : MLM, money game, OOT, iklan tanpa izin, SARA, testing, |
| pembicaraan pribadi, one line message, melecehkan, tidak sopan. |
+-------------------------------------------------------------------+
| Buat subjek yang kreatif, jangan : "tanya", "help", "mohon bantu" |
| Usahakan besar attachment < 200 kb. Gunakan winzip jika perlu. |
+-------------------------------------------------------------------+
| Ajak teman-teman Anda bergabung dengan mengirim e-mail kosong ke |
| XL-mania-subscribe@yahoogroups.com atau kirimkan mereka file dari |
| http://groups.yahoo.com/group/XL-mania/files/Promotion/ |
+-------------------------------------------------------------------+
| Berikan testimoni di : http://www.friendster.com/xlmania atau... |
| http://www.xl-mania.com/2008/06/testimoni-xl-mania.html |
+-------------------------------------------------------------------+
| Message lama ada di : |
| http://groups.yahoo.com/group/XL-mania/messages [perlu yahoo id] |
| http://www.mail-archive.com/xl-mania@yahoogroups.com |
+-------------------------------------------------------------------+
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch format to Traditional
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
.
__,_._,___
Nenhum comentário:
Postar um comentário