I am having a problem with a For Each loop in Excel VBA. I have a workbook with 4 sheets in it. I want to run a particular piece of code for each sheet in the workbook. I currently have the following code:-
Dim current as worksheet
For Each current in Worksheets
MY CODE HERE
Next
When I step through it the next statement doesn't select the next sheet. Can anyone help with this?!?
Dim current as worksheet
For Each current in Worksheets
MY CODE HERE
Next
When I step through it the next statement doesn't select the next sheet. Can anyone help with this?!?