endless loop

  1. L

    Loop runs over its last count in a code with error handling?

    Hi all, My problem is; that the code works like a charm, no run-time errors or any of the sorts, there is error handling in my code with user-forms (with simple input-boxes it was confusing) they work great too, except in the last row instead of my loop ending, it runs over to the next row and...
  2. M

    Endless Loop

    Frequently when I am entering code in VBA, I will execute the code. But if I inadvertently created an endless loop sometimes my screens will go tinted white and I cannot interrupt the code. How can I stop the code without having to lose all my latest work? If I remember, I will add a doevents...
  3. S

    Error Handling Block Always Executes

    Private Sub UserForm_Initialize() Dim myWorksheet As Worksheet With lstSheets .MultiSelect = fmMultiSelectMulti .ListStyle = fmListStyleOption For Each myWorksheet In Worksheets If myWorksheet.Visible = xlSheetVisible Then 'add each...
  4. S

    Macro triggered by Worksheet Activate - endless loop

    I have a multi-sheet workbook. The first sheet is a summary of results from the rest of the workbook. I would like this summary sheet to auto-refresh itself each time the sheet is activated. The VBA code triggered by the Worksheet/Activate event feeds some parameters out to other sheets, then...

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