+ Reply to Thread
Results 1 to 3 of 3

nested ifs not executing

  1. #1
    Registered User
    Join Date
    03-28-2007
    Posts
    27

    nested ifs not executing

    Hey guys,
    I have several if thens that i am trying to consolidate into one sub and assign one button to it. All of them seem to work when run on their own, but only the first 2 get executed when put together.
    The code is below.
    Any ideas?
    Thanks,
    ritz
    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Ritz

    I think your end if statements are in the wrong place. Looking at the code, you are testing for a > situation. However, the next if is tested only if that occurs. There should be an endif for the > test to allow the subsequent items to be tested on their own.

    hth

    rylo

  3. #3
    Registered User
    Join Date
    03-28-2007
    Posts
    27

    Thanks Rylo

    Thanks Rylo,
    I'll give that a shot and see if it works.
    -Ritz

+ 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