+ Reply to Thread
Results 1 to 5 of 5

Complie error : else without if?

  1. #1
    Registered User
    Join Date
    02-25-2013
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003
    Posts
    11

    Complie error : else without if?

    Hi all, I am new to VBA programming. I don't know why the system claim that my "else" without "If" ?

    ====================================

    Please Login or Register  to view this content.

    ==============


    Thank you so much !!
    Last edited by soldout2; 02-26-2013 at 07:51 AM.

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Should be an easy euqestion.. take a look pls!

    You left out End if just before the end sub
    Please wrap your code with tags

  3. #3
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Should be an easy euqestion.. take a look pls!

    Welcome to the forum.

    I have added code tags to your post. As per forum rule 3, you need to use them whenever you put any code in your post. Please add them in future. If you need more information on how to use them, check my signature below this post.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  4. #4
    Registered User
    Join Date
    02-25-2013
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Should be an easy euqestion.. take a look pls!

    Quote Originally Posted by AB33 View Post
    You left out End if just before the end sub
    Please wrap your code with tags
    thanks for reminding me to quote,
    and I added end if just before end sub
    however the problem still exists??

  5. #5
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Complie error : else without if?

    Change your code to
    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