I am trying to zero out data for x number of columns based on a criteria.
For example:
Sheet 1:
Jan Feb Mar Apr May Jun Jul Aug Sept Oct Nov Dec
Sheet 2:
Version (Criteria) = 2
So, I would like to select the first two months and zero out all data in Jan & Feb column.
Any help would be appreciated.
Update: I got this much so far, now I am stuck on selecting every
<Code>
Sub hmm()
Dim cell As Range
For Each cell In Sheets("Test").Range("B10:B10")
mths = cell
Sheets("Report Data").Select
Range("C4").Select
ActiveCell.Offset(0, mths).Select
Dy = ActiveCell.Column
Range("C5").Select
Selection.End(xlDown).Select
bl = ActiveCell.Row
Range("D4:Dy4" & bl).Select
Next
End Sub
</Code>
I cant get it to select the range.