Om om om ,.......kodingannya kayak gini nih oom ........ ( Awas kalo banyak terlalu ngatur nanti kayak Anggodo ) ' ------------ ' Nama Modul :ModSolusi.mod ' Kegunaan : Solusinya si oom ' Created By : puthut_vai@yahoo. ' ------------ Dim Folder As Scripting.Folder Dim SubFolder As Scripting.Folder Dim File As Scripting.File Dim FSO As Scripting.FileSyste Sub SolusiSioomm( Dim Path As String, vWorkBuk As String Dim wShitHasilKopian As Worksheet, ws As Worksheet Dim fileName As String, vWBukdiSubFolder As Workbook Dim vRangeKopian As Range, vRangeHasilKopian As Range Dim vBarisKopian As Integer vBarisKopian = 2 ' Mulai Baris vWorkBuk = ActiveWorkbook. Path = ThisWorkbook. Application. Application. ' Make Pisual Besik Skrip....... Set FSO = New Scripting.FileSyste Set Folder = FSO.GetFolder( ' Cek File di Sib Polder.... For Each SubFolder In Folder.SubFolders ' Make Wild Card.... ' Wild artinya : Liar ' Card : Kartu ' Jadi Wild Card = Kartu Liar,....ha ha ha ha......... ' = Looping semua dengan extensi File xls di dalam subdolder... fileName = Dir(SubFolder & "\*.xls", vbNormal) If Len(fileName) = 0 Then Exit Sub ' Looping File di Subfolder Do Until fileName = vbNullString If Not fileName = vWorkBuk Then ' Untuk Data Penjualan If fileName = "Data Penjualan.xls" Then Set wShitHasilKopian = ActiveWorkbook. Set vWBukdiSubFolder = Workbooks.Open( Set vRangeKopian = vWBukdiSubFolder. Set vRangeHasilKopian = wShitHasilKopian. vRangeKopian. vWBukdiSubFolder. ' Barang Hilang ElseIf fileName = "Barang Hilang.xls" Then Set wShitHasilKopian = ActiveWorkbook. Set vWBukdiSubFolder = Workbooks.Open( Set vRangeKopian = vWBukdiSubFolder. Set vRangeHasilKopian = wShitHasilKopian. vRangeKopian. vWBukdiSubFolder. ' Pelanggan ElseIf fileName = "Data Pelanggan.xls" Then Set wShitHasilKopian = ActiveWorkbook. Set vWBukdiSubFolder = Workbooks.Open( Set vRangeKopian = vWBukdiSubFolder. Set vRangeHasilKopian = wShitHasilKopian. vRangeKopian. vWBukdiSubFolder. End If End If fileName = Dir() ' <--- Jangan diapa2xin bahaya bisa ngeheng..... Loop Next SubFolder Application. Application. Set Folder = Nothing Set FSO = Nothing End Sub File Terlampir oom.... Puthut Wibowo --- On Mon, 11/2/09, ..:: priel ::.. <XAVREIL@GMAIL.
|
| Pcas ndahe... pcas ndahe... pcas ndahe... pcas ndahe... |
| 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