Originally Posted by
lavinius
Hello.
The macro below copys a template sheet to last in order and renames it by a list in range "AD7". Im trying to make the code skip one iteration if a sheet with the name in range allready exist to next name in range.
Are you saying that in your range of sheet names there are duplications?
If not please upload your workbook so that we can see your problem in context.
Incidentally why do you need the Goto. Why not just use
and replace the NextIteration: with End If
Although in this example it's clear what you are doing, it's not generally regarded as good coding practice since it can lead to sloppy 'spaghetti' code which is difficult to read.
Bookmarks