Dim wkbkdestination As Workbook
Dim destsheet As Worksheet
For Each ThisWorkSheet In wkbkorigin.Worksheets
'this throws subscript out of range if there is not a sheet in the destination
'workbook that has the same name as the current sheet in the origin workbook.
Set destsheet = wkbkdestination.Worksheets(ThisWorkSheet.Name)
Next
Fondamentalmente faccio scorrere tutti i fogli nella cartella di lavoro di origine, quindi imposto destsheet
nella cartella di lavoro di destinazione al foglio con lo stesso nome di quello attualmente iterato nella cartella di lavoro di origine.
Come posso verificare se quel foglio esiste? Qualcosa di simile a:
If wkbkdestination.Worksheets(ThisWorkSheet.Name) Then