Results 1 to 8 of 8

Proper syntax to exit a loop if IsError is true

Threaded View

  1. #6
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Proper syntax to exit a loop if IsError is true

    I don't know why your IsError system isn't working...everything I look up shows that it uses a IsError(RtnValue) and the RtnValue is set from an expression (IE: a valid error number), so in theory it should work...but I wouldn't use this looping technique for this application....I believe both stnkynts and I have shown a different and possibly better way...I totally understand your wanting to understand why this doesn't work and I can only give a weak answer....sorry....HTH

    Edit: the IsError didn't show in the actually looping construct....not that it can't, I just haven't seen it used that way....
    Last edited by judgeh59; 06-30-2014 at 12:46 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Proper IF syntax when using in VBA
    By scott28 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-27-2013, 06:25 AM
  2. =IF(ISERROR(V6/AJ6)=TRUE,0,V6/AJ6) Please help!!
    By Rick Teo in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-25-2013, 03:09 AM
  3. Issue with IF(ISERROR(VLOOKUP syntax
    By jh9 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-20-2011, 12:45 PM
  4. Proper use of ISERROR() formula
    By Pyrex238 in forum Excel General
    Replies: 3
    Last Post: 04-11-2011, 07:04 PM
  5. Is this proper syntax?
    By Shelby Haynes in forum Excel General
    Replies: 3
    Last Post: 05-10-2005, 05:06 AM

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