+ Reply to Thread
Results 1 to 2 of 2

Else W/o If error-Why?

  1. #1
    Registered User
    Join Date
    06-02-2009
    Location
    Arlington, VA
    MS-Off Ver
    Excel 2007
    Posts
    80

    Else W/o If error-Why?

    I can't figure this out. I have tried the ElsIf method too. What am I doing wrong? This is driving me crazy.

    Regular If form that I tried
    Please Login or Register  to view this content.
    ElseIf form I have tried:
    Please Login or Register  to view this content.
    The error pops up on this line:
    Please Login or Register  to view this content.
    Last edited by nsorden; 08-31-2009 at 02:27 PM.

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Else W/o If error-Why?

    You can only use If and Then on the same line if you have no other clauses, i.e. one statement after the Then and nothing else.
    Please Login or Register  to view this content.
    (no End needed) or
    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