Tecnologia, programação e muito Visual FoxPro.

sexta-feira, 19 de junho de 2009

Re: ]] XL-mania [[ Break Range



Function BreakUp(S As String) As String
Dim s1 As Variant
Dim s2 As Variant
Dim tmp As String
Dim i As Variant
s1 = Val(Left(S, InStr(1, S, "-") - 1))
s2 = Val(Mid(S, InStr(1, S, "-") + 1, Len(S) - InStr(1, S, "-")))
Do Until i >= s2
i = i + s1
tmp = tmp & CStr(i) & ","
Loop
If Len(tmp) > 1 Then tmp = Left(tmp, Len(tmp) - 1)
BreakUp = tmp
End Function

2009/6/18 <sigitsetyowidodo@yahoo.com>
>
> XL-mania yg makin jaya, saya ingin tanya, bgmna cara untuk nge break angka yang ada dalam suatu range, menggunakan macros, misalkan :
>
> Range :
> 0.5-1.5 ==> yang ingin ditampilkan adalah bilangan yang ada dalam range tersebut, seperti 0.5; 0.75; dan 1.5
>
> Range :
> 2-12 ==> yang ingin ditampilkan adalah bilangan yang ada dalam range tersebut, seperti 2; 4; 5; 6; 8; 10 dan 12
>
> trmksh

__._,_.___
+-:: XL-mania ::::::::::::::::::::----------------------------------+
| XL-mania, berjuang untuk rakyat, pancen oyeeee, LANJUTKAN!        |
| 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              |
+-------------------------------------------------------------------+
Recent Activity
Visit Your Group
Give Back

Yahoo! for Good

Get inspired

by a good cause.

Y! Toolbar

Get it Free!

easy 1-click access

to your groups.

Yahoo! Groups

Start a group

in 3 easy steps.

Connect with others.

.

__,_._,___

Nenhum comentário:

Arquivo do blog