Interestingly, this works...
Sub CycleRangeFori() Dim i As Long For i = 1 To Range("rngA").Cells.Count Range("rngA").Cells(i).Select Next i End Sub
See attached workbook. The named range is A1:F1,A5:F5. Why can't I do it using the Range.cells approach?
Sub CycleRangeForEach() Dim rng As Range For Each rng In Range("rngA") rng.Select Next rng End Sub
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE