D
Dave Peterson
Try this:
For Each cell In me.worksheets("MASTER").Range("d5,g5,j5,e7,m7,g10")
Me refers to the object that owns the code. In this case, since the code is in
the ThisWorkbook module, the Me keyword refers to the workbook that's closing.
And in this case, it doesn't matter, but I like this syntax:
For Each cell In me.worksheets("MASTER").Range("d5,g5,j5,e7,m7,g10").cells
I think it makes it more self-documenting.
For Each cell In me.worksheets("MASTER").Range("d5,g5,j5,e7,m7,g10")
Me refers to the object that owns the code. In this case, since the code is in
the ThisWorkbook module, the Me keyword refers to the workbook that's closing.
And in this case, it doesn't matter, but I like this syntax:
For Each cell In me.worksheets("MASTER").Range("d5,g5,j5,e7,m7,g10").cells
I think it makes it more self-documenting.