+ Reply to Thread
Results 1 to 2 of 2

Proper error catching runtime error 1004

  1. #1
    Forum Contributor
    Join Date
    04-03-2009
    Location
    USA, California
    MS-Off Ver
    Excel 2007
    Posts
    385

    Proper error catching runtime error 1004

    As you can see below I don't really understand how to error catch so well. the line that keeps giving me the error is if Range("G1").value = "Eaches" then. Try as I might I can't get the error handling code to get it to get out of the X loop. I would prefer to not use on error resume next and would rather use if err.number = 1004 and if err.number = 91 because those are the two known types of errors and if another type of error pops up I'd like to know about it.

    anyone help with the error handling code?
    Please Login or Register  to view this content.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Proper error catching runtime error 1004

    Maybe you could explain what your're trying to do, and popst the rest of the code. What you've posted makes little sense.
    Entia non sunt multiplicanda sine necessitate

+ 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