errhandler

  1. P

    Updating Access from Excel

    I have followed several links here and elsewhere and just can't figure out what I am doing wrong! I select items from a listbox display and then wish to update (2 lines for my testing). The first iteration appears to go through all steps when in debug mode BUT does not actually update the...
  2. S

    Looking for a non-array, non-VBA function

    Full disclosure: I'm a finance guy in Oil & Gas and I use Excel for modeling purposes. Basically I'm looking for a non-array formula and non-VBA UDF formula that can accomplish the below: <tbody> Month Wells Production Total Production 1 9 16,500 181,500 2 9 11,939 119,391 3 10 9,529...
  3. J

    2010 macro runs slow in 2016 and display result is different

    Hello, I have the following(see below) "File Search Utility" macro that I have been using in Excel 2010. This macro searches through a specified folder of workbooks and returns the desired data (love this macro!). In Excel 2010, the search (which searches 450+ files) takes about 2 minutes and...
  4. R

    error Handling in loop "For"

    Hi Y'all i know this is silly, but i can't figure it out. please help : for i = 1 to 2 on error goto ErrHandler 'my code here sheets("Panel1").range("A1").value = "Success" errHandler : sheets("Panel1").range("A1").value = "Failure" resume nextitiration nextitiration ...
  5. T

    Error handling

    Is it good practice to always follow an on error with a resume? For example, method 1: Sub Start() On Error GoTo Errhandler a = 0 b = 10 / a On Error GoTo 0 ' do something Terminate: On Error GoTo 0 Exit Sub Errhandler: Msgbox "Div by 0" Resume Terminate End Sub...
  6. M

    Automatically change text to Upper case

    Excel 2007 Automatically change text to Upper Case. Kindly look into the below vba code which applies Col A to H. Private Sub Worksheet_Change(ByVal Target As Excel.Range) If Target.Column > 8 Then Exit Sub On Error GoTo ErrHandler Application.EnableEvents = False Target.Formula =...
  7. P

    VBA assistance needed

    I have this code that scrolls down the page. It starts at B8 but doesn't stop. How do I make it stop at row 158 then start over from the top. It will loop until {ESC} is pressed. Thanks, PuJo Sub SlowScroll() Application.EnableCancelKey = xlErrorHandler On Error GoTo ErrHandler...
  8. B

    VBA issue

    I have this macro I made that converts the excel page to .pdf and then saves it to a folder I assigned. the macro works and the file is saved in the right folder but after the macro runs it displays the message "could not create PDF file" which is the message that is supposed to be displayed if...
  9. T

    On Error GoTo 0

    In the sub below, should the On Error GoTo 0 be placed immediately after the line that might cause an error or should it be placed at the end, or indeed in both places? On Error GoTo Errhandler Worksheets("Sheet10").Activate 'On Error GoTo 0 'SHOULD THIS BE PLACED...
  10. C

    On Error Goto Errhandler: not working

    I'm kind of surpised this doesn't work. I'm getting the 91 error when WellIDRow doesn't find what it's looking for, which I expected, that is why I put in the error handing. If it can't find the number then it should skip and go to the next "a". However, I'm still getting the "pop-up" of the...
  11. L

    Delete Worksheet if it exists, if not ignore

    Hi, I am trying to write an ErrHandler code but am having a few issues. Basically I want the Err message to delete a worksheet called "Scorecard" and one called "Comparison" if they exist. If they don't then I would like the macro to continue. The macro I have written scrapes a website and...

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