maaf salah kutip & salah lampiran
seharusnya (tidak perlu loop) sbb:
Function DataDariKananKe(S As String, Idx As Integer)
' siti Vi // aug 25 aug 2010 /modified
Dim ArrS, i As Long
ArrS = Split(Trim(S), "-")
i = UBound(ArrS) + 1
DataDariKananKe = ""
If Idx <= i Then DataDariKananKe = Val(ArrS(i - Idx))
End Function
On Thu, Aug 26, 2010 at 6:50 AM, STDEV(i) <setiyowati.devi@gmail.com> wrote:
>
> E^e.. salah ya ?? (tiap elemennya ikut dibalik)
> seharusnya begini kalleee..
>
> Function DataDariKananKe(S As String, Idx As Integer)
> ' siti Vi // aug 25 aug 2010 /modified
> Dim ArrS, i As Long, n As Long
> ArrS = Split(Trim(S), "-")
> n = UBound(ArrS)
> DataDariKananKe = ""
> If Idx > n + 1 Then Exit Function
> For i = n To 0 Step -1
> If n + 1 - i = Idx Then
> DataDariKananKe = Val(ArrS(i))
> Exit For
> End If
> Next i
> End Function
>>> Rekan2 XL-Mania, saya mempunyai kasus (file terlampir), mengambil text dari kanan. Namun hasilnya ada di cell yg berlainan.
>>> Regards
>>> DWJ
> ' siti Vi // aug 25 aug 2010 /modified
> Dim ArrS, i As Long, n As Long
> ArrS = Split(Trim(S), "-")
> n = UBound(ArrS)
> DataDariKananKe = ""
> If Idx > n + 1 Then Exit Function
> For i = n To 0 Step -1
> If n + 1 - i = Idx Then
> DataDariKananKe = Val(ArrS(i))
> Exit For
> End If
> Next i
> End Function
>>> Rekan2 XL-Mania, saya mempunyai kasus (file terlampir), mengambil text dari kanan. Namun hasilnya ada di cell yg berlainan.
>>> Regards
>>> DWJ
__._,_.___
+-:: XL-mania ::::::::::::::::::::----------------------------------+
| oooppsss... 216 e-mails di folder sp4m kepencet [delete] :( |
| 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 |
+-------------------------------------------------------------------+
| oooppsss... 216 e-mails di folder sp4m kepencet [delete] :( |
| 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:
Postar um comentário