om om om tinggal dipanggil aja oom.....Kalo Dari .... - Kecil ke Besar manggilnya kayak gini.... Call SortingAlamatIP(Ascending) - Besar Ke Kecil Call SortingAlamatIP(Descending) kodingannya oom ... : ' ------------ ' Nama Modul :ModSortasi. ' Kegunaan : Mensortasi Dalam Bentuk Array ' Created By : puthut_vai@yahoo. ' ------------ Public Enum EnumPilihan Ascending = 1 Descending = 0 End Enum Sub SortingAlamatIP( Dim Arr() As String ' Array Dinamis Dim wShitHasil, InputSheet As Worksheet Dim vRange As Range Dim vCountBaris As Long Dim BarisTerakhir As Long Dim vSementara Dim vHasilSorting As String Dim vRangePencarian As Range Dim sPencarian As String Application. Set InputSheet = Worksheets(" ' Baris terakhir pada wShit Input BarisTerakhir = InputSheet.Range( ' Deklarasi ulang Array dari Dinamis Menjadi Statis ' Berdasarkan Jumlah Baris input Shit ReDim Arr(1 To BarisTerakhir) InputSheet.Activate vCountBaris = 1 ' Looping ampe habis Do While Cells(vCountBaris, 1) <> "" vSementara = Trim(Replace( ' Insert Text Pada Cell ke dalam array Arr(vCountBaris) = Right(vSementara, Len(vSementara) - 8) vCountBaris = vCountBaris + 1 Loop ' Buat Shit Baru Set wShitHasil = ThisWorkbook. ' Masukan Hasil Array ke Sheet Baru Set vRange = wShitHasil.Range( vRange = Application. ' Pilihan Sortasi Array yang dipilih pada saat dipanggil Select Case ReturnType ' Ascending (Kecil ke Besar) Case Ascending vRange.Sort key1:=vRange, order1:=xlAscending ' Descending (Besar ke Kecil) Case Descending vRange.Sort key1:=vRange, order1:=xlDescendin End Select For vCountBaris = 1 To vRange.Rows. vSementara = Trim(Replace( vHasilSorting = wShitHasil.Cells( ' Set Pencarian : 192.168.11. + Variabel Hasil Sorting ' Masih pake koding Brutal (Brute Force) ' Dirubah aja oom....saya gak tau bgmn skema penomoran IP Address ' Punya si omm... sPencarian = "192.168.11. ' Pergantian Variabel Hasil Sorting dengan bentuk IP addreess sebenarnya With InputSheet.Range( Set vRangePencarian = .Find(What:= After:=.Cells( LookIn:=xlValues, _ LookAt:=xlPart, _ SearchOrder: SearchDirection: MatchCase:=False) wShitHasil.Cells( End With Next vCountBaris Application. Call RapatkanBarisan End Sub ' ------------ ' Nama Modul :ModRapatkanBarisan ' Kegunaan : Autofit cell dalam satu workshit ' Created By : puthut_vai@yahoo. ' ------------ Option Explicit Public Sub RapatkanBarisan( If ActiveWorkbook Is Nothing Then Exit Sub Dim i# If ActiveWindow. For i = 1 To ActiveWindow. ActiveWindow. Next Else Cells.EntireColumn. End If End Sub File Terlampir oom..... - ^ Puthut Wibowo ^ - || puthut_vai@yahoo. --- On Wed, 10/28/09, { J 4 j a N k } <jajank@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