+ Reply to Thread
Results 1 to 3 of 3

If Else Statement doesnt work well...

  1. #1
    Registered User
    Join Date
    09-22-2008
    Location
    vienna
    MS-Off Ver
    MS Office 2007
    Posts
    24

    If Else Statement doesnt work well...

    Hi

    I just create a code like:

    Please Login or Register  to view this content.
    It works fine if i write another String on the Cell, but if i write AD on the cell it gives me the same MsgBox again? Why it can be should i trim it or ???

    thanks
    Last edited by xmux; 03-25-2009 at 08:58 AM.

  2. #2
    Forum Guru shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: If Else Statement doesnt work well...

    That statement is ALWAYS true.

    Join the conditions with And instead of Or.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    09-22-2008
    Location
    vienna
    MS-Off Ver
    MS Office 2007
    Posts
    24

    Re: If Else Statement doesnt work well...

    ohhhh thank you very much!!! SOLVED!!

+ 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