Tecnologia, programação e muito Visual FoxPro.

quinta-feira, 25 de novembro de 2010

Re: ]] XL-mania [[ Macro copy data

 


seperti ini kah ?

Function UnixValue(iRng As Range)
   Dim Uv(), Ux(), tTip, x As Long, y As Long, n As Long, i As Long, cel As Range
   For Each cel In iRng
      If Not IsEmpty(cel) Then n = n + 1: ReDim Preserve Uv(1 To n): Uv(n) = cel.Value
   Next cel
   For x = 1 To UBound(Uv) - 1
      For y = x + 1 To UBound(Uv)
         If Uv(x) > Uv(y) Then tTip = Uv(x): Uv(x) = Uv(y): Uv(y) = tTip
         If Uv(x) = Uv(y) Then Uv(x) = ""
      Next y
   Next x
   i = 0
   For n = 1 To UBound(Uv)
      If Not Uv(n) = "" Then i = i + 1: ReDim Preserve Ux(1 To i): Ux(i) = Uv(n)
   Next n
   UnixValue = WorksheetFunction.Transpose(Ux)
End Function

penggunaan di sheet > lihat lampiran

bila bukan spt itu;
mohon pejelasan tambahan & jika mungkin keinginan yg digambarkan dlm workbook



2010/11/10 Junizar <Jihalim@gmail.com>
> Bgmana caranya membuat macro utk mengcopy cells b1:c3 sbg contohnya ke sheet 2
> dgn referensi a1:a3 sbg data yg unik. Sekiranya bisa di cc ke email saya yg di xl, 
> terima kasih
> Sent from iphone, enjoy

__._,_.___
Recent Activity:
+-:: XL-mania ::::::::::::::::::::----------------------------------+
| uaaaaaaa.... momods mau pulang cepet hari ini....                 |
| 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

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


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


Be a homeroom hero ¿ help Yahoo! donate up to $350K to classrooms!

.

__,_._,___

Nenhum comentário:

Arquivo do blog