Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
While Wend condition
#1
Solved: 10 Years, 9 Months, 1 Week ago
hi sir,

Please help me while condition is not working it is directly moving to next.

pls see the below code.


Code:
empid=ASF467  
For i=2 to rowcnt
        ecl=wrksht.cells(i,2)
        eempid=wrksht.cells(i,1)
        msgbox cstr(eempid)----here eempid is ASF467  
        msgbox ecl
        while cstr(empid)=cstr(eempid)
            If ecl=0 Then
               ecl=0
            End If
            If ecl=0.5 Then
               ecl=0
            End If
            If ecl=1  Then
                ecl=1
            End If
            If ecl=1.5 Then
                ecl=1
            End If
            If ecl=>2 Then
                ecl=2
            End If
        wend [/color]
     Next

Regards,
Praveen raaj.
Reply


Messages In This Thread
While Wend condition - by raaj123 - 06-11-2012, 11:03 AM
RE: While Wend condition - by ravi.gajul - 06-11-2012, 03:39 PM
RE: While Wend condition - by raaj123 - 06-11-2012, 05:41 PM
RE: While Wend condition - by ravi.gajul - 06-11-2012, 06:25 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Need to verify the drop down values based on condition santhoshmscsoftware 1 2,723 05-04-2016, 11:28 PM
Last Post: supputuri
  Condition/Outcome Branching within Script danielrose01 3 3,294 06-13-2012, 10:29 AM
Last Post: sshukla12
  if condition throwing type mismatch error rrdamuluri 2 3,948 11-04-2010, 10:51 PM
Last Post: rrdamuluri
  Can we use checkpoint as a condition statement? riteshgpt 4 9,495 04-28-2010, 08:49 PM
Last Post: riteshgpt
  Can we use Flower Brackets while using If...Else condition? dinesh_d_r 1 2,780 11-26-2008, 10:23 AM
Last Post: yaron.assa

Forum Jump:


Users browsing this thread: 1 Guest(s)