+ Reply to Thread
Results 1 to 6 of 6

Nested conditioning failed with "Else without If" errors

  1. #1
    Forum Contributor
    Join Date
    10-01-2010
    Location
    Jakarta
    MS-Off Ver
    Excel 2003
    Posts
    101

    Nested conditioning failed with "Else without If" errors

    How to perform nested If / Else conditioning.

    I played around and gets "Else without If" errors.

    Scrolling around forums did not bring me further. A tested with CASE statement, but that (in my opinion) does not allow nested conditions.

    Here is the code:

    Please Login or Register  to view this content.
    Last edited by vdongen; 10-10-2010 at 08:20 AM.

  2. #2
    Forum Contributor
    Join Date
    10-01-2010
    Location
    Jakarta
    MS-Off Ver
    Excel 2003
    Posts
    101

    Re: Nested conditioning failed with "Else without If" errors

    I have tried with undermentioned solution but I remains recieving Else/If etc. errors.


    Please Login or Register  to view this content.

  3. #3
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Nested conditioning failed with "Else without If" errors

    Plunge into the VBEditor's help-files. Look for If, ElseIf.



  4. #4
    Forum Contributor
    Join Date
    10-01-2010
    Location
    Jakarta
    MS-Off Ver
    Excel 2003
    Posts
    101

    Re: Nested conditioning failed with "Else without If" errors

    I keep getting If/EndWith errors etc, and most of them are in contrary to each other. If/Ten/Else errors make me remembering the old goodie 1980's where I made programs on the Philips P2000.

  5. #5
    Forum Contributor
    Join Date
    10-01-2010
    Location
    Jakarta
    MS-Off Ver
    Excel 2003
    Posts
    101

    Re: Nested conditioning failed with "Else without If" errors

    Solved, find below the code for others


    Please Login or Register  to view this content.

  6. #6
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Nested conditioning failed with "Else without If" errors

    Which could be written alternatively:

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1