Tidak disarankan,
tapi bisa pakai fungsi goto
____________________________

For x=1 to 10

def:

   If x<5 then goto abc

Next

abc:
Bla...bla...bla

x = x + 1
If x<10 then goto def
_____________________________

Cmiiw
On Apr 17, 2017 2:04 PM, "'Heru Safrudin' [email protected]
[belajar-excel]" <[email protected]> wrote:

>
>
> For x=1 to 10
>
>    If x<5 then
>
> Harus melewati Next   <----- Bagaimana biar bisa melewati “Next”
>
>    Else
>
>      NILAI = x
>
>    End If
>
>    Cek=True <----- Katakanlah semua harus melewati ‘Cek’
>
> Next
>
>
>
> Terima kasih
>
> Heru Safarudin
>
>
>
> *From:* [email protected] [mailto:belajar-excel@
> yahoogroups.com]
> *Sent:* 13 April 2017 14:19
> *To:* BeExcel
> *Subject:* Re: [belajar-excel] Melanjutkan Looping
>
>
>
>
>
> Hai Heru,
>
> Bisa lebih diperjelas ?
>
> Dari x=1 sampai 10 itu, pengennya di x=1 proses apa, x=2 proses apa dst
> gitu..
>
>
>
>
>
>
> 2017-04-13 8:18 GMT+07:00 'Heru Safrudin' fcprocessing.bisikediri@bisi.
> co.id [belajar-excel] <[email protected]>:
>
>
>
> Yth. B-Exceller,
>
>
>
> Bagaimanakah caranya melewati/melanjutkan loop jika melewati kondisi
> tertentu ?
>
> Misal:
>
>
>
> For x=1 to 10
>
>    If x<5 then
>
> Harus melewati Next   <----- Bagaimana biar bisa melewati “Next”
>
>    Else
>
>      NILAI = x
>
>    End If
>
> Next
>
>
>
> Mohon bimbingannya
>
>
>
> Terima kasih
>
>
>
> Heru Safrudin
>
>
>
> 
>

Kirim email ke