error handling

  1. S

    Resume Next

    Hey everyone, I am having some trouble with this one. I am finishing up a very large VBA. There are three instances where I select a column, search for a particular word (i.e.- "MOVE") and select that cell. That works perfect. The problem is when the word is not found. Once in a while, that...
  2. T

    Error Handling in Macro

    I have a macro that makes several calculations, but I can't figure out how to handle a divide by zero error ("overflow" for the macro). I've tried using the IfError function and get the same result. Ideally, I'd like it to place a "0" in the cell if there are no results for the denominator. Can...
  3. D

    Find Method Error

    Hello, i have the following piece of VBA code, enclosed at the bottom. I would like to search for a word in the whole row. If the word is found, i would like select and hide the row, if the word is not found, I would like to proceed with the next row. However, whenever the word is not found, I...
  4. berty2000

    error handling for newbie

    running Excel 2003 Word 2003 Got a button in excel cell that opens up a document in word and then brings up the print document option automatically. My problem is if they click Cancel I get an error, Im sure the way i've coded it is not quite right but im trying to teach myself from scraps of...
  5. K

    Error Handler Not Working

    I've adapted a bit of code I found on the web to search for text in two adjacent columns where only numbers should be. It works fine when I test it. But now I want to check two more columns that are not contiguous with the first two columns I checked and so on for a total of three groups of two...
  6. L

    problem capturing Run-Time error 18

    Hi all, Im am creating a powerpoint like presentation in excel. The presentation is invoked by button click and I need to capture the error variable when ESC is pressed. This practical use of it is: the excel document should run on a tv screen, showing each page about 30 seconds. I need the...
  7. T

    If IsError and WorksheetFunctions

    Hey guys, I am developing a function that does a couple of things. First, the user specifies player names in 'Scores'!A1:A1000, and then various statistics in 'Scores'!B1:G1000. The function loops through these entries, and then updates the corresponding cells in the 'Lifetime Statistics'...
  8. JackDanIce

    Error handling exception

    Hi, Exploring the use of Error handling in VBA and stuck with following: On Error GoTo myContinue 'code here to find an item and cut & paste it into a previously created worksheet "Exceptions" 'a flag to highlight if exceptions found which is called upon later in the macro NoExceptionsFlag...
  9. C

    Help with errors or IF statments

    Excel 2002 Below is my code that will create a new tab for the current month for each workbook in a folder. Sometimes there will be a workbook in the middle of a folder that will generate an error so I would like to be able to correct the error in the code but then re-run the macro. So I need...
  10. I

    get function that created the error

    Hi folks, i implemented some error handling in my vba project. when an error occurs i catch it and present some msg-box to the user. now i wanted to know whether it is possible to get the function that created the error. or the line number where the error occured would also help. thus simple...
  11. H

    #N/B error processing

    Dear all, I have the following problem: In a VBA Excel programme, I am checking the value of an array of cells. In some cells are numerical values. That is okay. But sometimes I have #N/B as value in the cell (the worksheet is delivered to me by a supplier) and then the VBA programme comes to a...
  12. M

    Determine Calling Procedure Name in VBA

    Hi, I have a generic_error_hadler which I call on error and I setup quite a fancy msgbox with lots of details but one of the detail that I have to pass is the calling procedure name at run time i.e. Sub Validation_Routine() On Error GoTo Error_Handler valid = False If...
  13. J

    Sumif with Two Conditions that Ignore #N/A

    Greetings: I have a data sheet with 10,000 rows that (as a result of an array formula) returns "#N/A" for some values. Each of the rows is also classified as "customer a" and "customer b". I am trying to sum the data column for only "customer a" values AND ignore the "#N/A" error. I have...
  14. G

    excel vba - shared workbook conflict resolution handling

    Hi guy's, I’m looking for a way for my userform to deal with conflict resolution dialogue boxes when it's saving to a shared workbook. instead of the conflict resolution dialogue box appearing I’d like to handle this within the vba code in the following way. if conflict resolution accept all...

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top