C
Costanza
Hello,
I'm really inexperienced in VBA and I need to execute a sub procedure
in all open workbooks except in Personal.xls, but I'm having trouble
coding this.
What am I doing Wrong? Or maybe there's an easier way to do this
Here it is what I have:
Sub nome_cenario()
Dim wkb As Workbook
For Each wkb In Workbooks
If wkb.name = "PERSONAL.xls" Then
Next wkb
Else
Call Myprocedure
Next wkb
End Sub
I'm really inexperienced in VBA and I need to execute a sub procedure
in all open workbooks except in Personal.xls, but I'm having trouble
coding this.
What am I doing Wrong? Or maybe there's an easier way to do this
Here it is what I have:
Sub nome_cenario()
Dim wkb As Workbook
For Each wkb In Workbooks
If wkb.name = "PERSONAL.xls" Then
Next wkb
Else
Call Myprocedure
Next wkb
End Sub