loop and on error issue

  1. J

    Loop through for WS names LIKE "AAA_####A" not working and throwing a runtime error 9

    I have a worksheet that can contain up to 40 worksheets with a name LIKE "AAA_####A" where A can be any letter and # can be any number. I am trying to loop through each one in turn, extract data, paste it on another worksheet then go to the next worksheet. The code below is where I am, but it...
  2. D

    Loop until No Error

    Long time reader, first time poster! I'm trying to create a Loop that names a sheet based on a cell value. If the sheet name already exists then the macro will pop up a message box with an entry field to enter a new name and that will Loop until the user enter a sheet name that isn't already...
  3. S

    Loop issue to export picture

    Hi all, I want to export a group of shapes as an image. The group consists of various shapes that are displayed / hidden based on user selection and show incident types on a map. All I want is to export this map to a JPG. I have crafted a script from various finds online, it works sometimes...
  4. C

    ON Error GoTo Label 'In a loop'

    Maybe someone can help me with this? I have a loop going through a column to see if anything is not zero. If there is an error in one of the cells I want is to go to the error handler and perform a set of statements. However, I'm getting issues with the loop not ending as the variable will not...
  5. M

    VBA Code to open a file and try again if that file isnt there

    Hello, I am trying to write VBA code that will open a file with the following name: "Price Overrides" However, sometimes the name of this file is "Price Overrides-1", or "Price Overrides-2" depending on when I lasted open/closed my browser/excel which can be hard to keep track of sometimes...
  6. H

    On error goto label error

    I have searched the web all day and have not found an answer. I have two workbooks. One is created at the begining of the year and the other is used to update it each month. I have a loop statement that has an on error goto label. The first two tabs in my main workbook are not in the new...

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