I am curious as to why you would use a loop to do something the difficult way when there is a simple single statement to perform that.Originally Posted by mwc0914
Using your 'column' and LastRow = 5
iColumn = Asc(Column) - 96
LastRow = 5
Range(Cells(1, 18), Cells(LastRow, 18 + iColumn)).Select
Selection.Value = 0
---
This will only work up to column Z, but that may suffice for your needs.
note, you could also use
Range(Cells(1, 18), Cells(LastRow, iColumn)).Clear
---
To your loop, whilst there is a method to use R+1 it gets difficult as you pass column Z, so I would avoid using that address style for what you are doing.
---
Bookmarks