+ Reply to Thread
Results 1 to 6 of 6

Block if without end if

  1. #1
    Registered User
    Join Date
    11-28-2013
    Location
    p-town
    MS-Off Ver
    Excel 2011 mac
    Posts
    4

    Block if without end if

    ive spent 3 hours on this code half of witch is trying to debug this, any help is appreciated....ps sorry about the mess

    Please Login or Register  to view this content.
    Moderators note: code tags added for you - this time
    Last edited by FDibbins; 11-28-2013 at 12:39 AM.

  2. #2
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,584

    Re: Block if without end if

    Please post your code with code tags in the future.

    The problem most likely lies here:

    Please Login or Register  to view this content.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 2000/3/7/10/13/16
    Posts
    49,980

    Re: Block if without end if

    malfrey, welcome to the forum

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    edit: based on Millz reply...see the value of code tags?

    Last edited by FDibbins; 11-28-2013 at 01:04 AM.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,584

    Re: Block if without end if

    After moderator added code tags for you, it seems there are more than just 1 problem:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    11-28-2013
    Location
    p-town
    MS-Off Ver
    Excel 2011 mac
    Posts
    4

    Re: Block if without end if

    now there is an error that says "do without loop", even after entering the new code

  6. #6
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,584

    Re: Block if without end if

    Then you have a Do loop somewhere (not in the chunk of code you have pasted) that is missing the syntax Loop to mark the end of loop.

+ 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. [SOLVED] Block if without end if - please help!
    By Shishek in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-07-2013, 07:37 PM
  2. [SOLVED] end if without block if
    By shart2k12 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-04-2013, 01:18 PM
  3. Replies: 5
    Last Post: 10-09-2012, 10:44 AM
  4. End if without block if
    By axecel in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-14-2010, 05:44 AM
  5. Replies: 2
    Last Post: 06-22-2010, 07:55 AM

Tags for this Thread

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