Tecnologia, programação e muito Visual FoxPro.

terça-feira, 6 de julho de 2010

Bls: ]] XL-mania [[ Tampilkan Data Global

 

punten.... mamang milu yeuh
 
Sub Cofilled()
    Dim i         As Long
    Dim n         As Long
    Dim rLast     As Long
    Dim sht       As Worksheet
    Dim shtReport As Worksheet
    
    Const rHeaderOffset As Long = 2
    Const cValues       As String = "C"
    Const bValues       As String = "B"
   
    With Application
    .ScreenUpdating = False
    .Calculation = xlCalculationManual
    End With

    Set shtReport = Sheets("Hasil")

    With shtReport
    .Range(.Cells(12, 1), .Cells(12, 3).End(xlDown)).ClearContents
    End With
   
i = 12
    
   
    For Each sht In Sheets
    With sht
        If sht.Name <> shtReport.Name Then
            rLast = .Cells(.Rows.Count, cValues).End(xlUp).Row
            For n = rLast To rHeaderOffset Step -1
                If .Cells(n, cValues) = Sheets("Hasil").Range("B2") And _
                .Cells(n, bValues) = Sheets("Hasil").Range("B3") Then
                    .Rows(n).EntireRow.Copy Destination:=shtReport.Rows(i)
                   
                    i = i + 1
                End If
            Next n
        End If
    End With
Next sht
    Set shtReport = Nothing
    With Application
    .ScreenUpdating = True
    .Calculation = xlCalculationAutomatic
   
    End With
   
End Sub

__._,_.___
Recent Activity:
+-:: XL-mania ::::::::::::::::::::----------------------------------+
| yak.... tembus 15,000. member ke 15,000 angkat tangannnnn... mau  |
| momods kirimin coklat.... hehehe...                               |
| 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              |
+-------------------------------------------------------------------+
MARKETPLACE

Stay on top of your group activity without leaving the page you're on - Get the Yahoo! Toolbar now.


Get great advice about dogs and cats. Visit the Dog & Cat Answers Center.


Hobbies & Activities Zone: Find others who share your passions! Explore new interests.

.

__,_._,___

Nenhum comentário:

Arquivo do blog