+ Reply to Thread
Results 1 to 4 of 4

Block If without End If

  1. #1
    Forum Contributor
    Join Date
    02-24-2013
    Location
    Dubai, UAE
    MS-Off Ver
    Excel 2013
    Posts
    113

    Block If without End If

    Please can you help me, I have the below code

    HTML Code: 
    And I am getting the error message Block If without End If. Can you see what I have done wrong?

    Thanks

    Katie

  2. #2
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Block If without End If

    You need an End If for each If
    Gary's Student

  3. #3
    Registered User
    Join Date
    08-20-2012
    Location
    Londonish, England
    MS-Off Ver
    Excel 2010
    Posts
    58

    Re: Block If without End If

    Also I think you'll want the exit sub after each message box I'd assume as well.

  4. #4
    Forum Contributor
    Join Date
    02-24-2013
    Location
    Dubai, UAE
    MS-Off Ver
    Excel 2013
    Posts
    113

    Re: Block If without End If

    Thank you so much, the End If has worked

    Katie

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. New kid on the block
    By christine379 in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 07-05-2013, 10:12 PM
  2. Replies: 5
    Last Post: 10-09-2012, 10:44 AM
  3. End if without block if
    By axecel in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-14-2010, 05:44 AM
  4. Replies: 2
    Last Post: 06-22-2010, 07:55 AM
  5. Block If
    By DA@PD in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 12-16-2005, 10:10 PM

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