Greetings,
I have the macro below giving trouble. The body of the macro will run, but does not want to seem to perform the task on a new sheet. It seems to be performing the same task on the same sheet (once for every sheet in the workbook)
Any ideas why the loop isn't running the code for each worksheet in the workbook?
I have the macro below giving trouble. The body of the macro will run, but does not want to seem to perform the task on a new sheet. It seems to be performing the same task on the same sheet (once for every sheet in the workbook)
Code:
Dim ws As Worksheet
For Each ws In ActiveWorkbook.Worksheets
Range.("H1").Select
ActiveCell.value = "VR"
Range.("I1").Select
ActiveCell.value = "Average"
Nest ws
Any ideas why the loop isn't running the code for each worksheet in the workbook?