+ Reply to Thread
Results 1 to 2 of 2

If...Then...Else Loop Error

  1. #1
    Registered User
    Join Date
    04-28-2011
    Location
    New York, US
    MS-Off Ver
    Excel 2003
    Posts
    6

    Question If...Then...Else Loop Error

    I am trying to write code for a If..Then..Else loop which will loop through 3 different ranges of check box's (TRUE) which if 1st range is true (open workbook) and run macro1, if 2nd range true (activeworkbook) run macro2...etc, however when I have a space in between rows in my first column, the entire application closes and stops. I think I might be missing a next statement somewhere, or an else statement. Any Ideas?

    Please Login or Register  to view this content.

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: If...Then...Else Loop Error

    there is nothing missing in your code. The only thing I can see is that if you have no file name to open in the first column (blank cell) when you have a TRUE in the first check box, your program tries to open a file which has but no name.
    That's all I can see so far.

+ 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