Tecnologia, programação e muito Visual FoxPro.

quinta-feira, 27 de maio de 2010

Re: ]] XL-mania [[ Mengumpulkan data tanggal ditugaskan

 

Macro,

Sub dtugas()

'anton suryadi 27/Mei/2010
Application.ScreenUpdating = False
t = Cells(Rows.Count, 1).End(xlUp).Row
x = Cells(2, 1).Resize(t - 1, 3)
Cells(2, 1).Resize(t - 1, 3).Sort Cells(2, 2), 1
p = 5
Range(Cells(1, p), Cells(t, 100)) = ""
For i = 2 To t
If Cells(i, 2).Value <> Cells(i - 1, 2).Value Then
    p = p + 1
    r = Cells(Rows.Count, p).End(xlUp).Row
    Cells(1, p).Value = Cells(i, 2)
    Cells(r + 1, p).Value = Cells(i, 3)
Else
    s = Cells(Rows.Count, p).End(xlUp).Row
    Cells(s + 1, p).Value = Cells(i, 3)
End If
Next
Cells(2, 1).Resize(t - 1, 3) = x
Application.ScreenUpdating = True
End Sub

File terlampir


>semoga bermanfaat




From: "@nwar" <neoyanan@yahoo.co.id>
To: XL-mania@yahoogroups.com
Sent: Wed, May 26, 2010 11:51:48 AM
Subject: ]] XL-mania [[ Mengumpulkan data tanggal ditugaskan

 

Dear Suhu XL-mania
Mohon bantuannya untuk menyelesaikan permasalahan saya..
Saya ingin mengumpulkan data tanggal seorang petugas (NIP) di masing-masing
kolom petugas tsb.
Seperti file terlampir.
Atas bantuannya sebelumnya saya ucapkan terima kasih.


__._,_.___
Recent Activity:
+-:: XL-mania ::::::::::::::::::::----------------------------------+
| selamat hari raya waisak untuk merayakan... selamat long weekend. |
| 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              |
+-------------------------------------------------------------------+
.

__,_._,___

Nenhum comentário:

Arquivo do blog