VBA referencing next cell in For loop -
i need compare cell 1 below in loop. know languages can "if cells(i,1).value = cells(i+1,1).value then..."
is there way in vba reason isn't working me. thanks
for = 7 ltrw if (cells(i, 1).value = 0 , cells(i + 1, 1).value = 0 cells(i, 1).entirerow.hidden = true end if next
like ?
for = 7 ltrw if cells(i).value = cells(i + 1).value ' can skip ", 1" optional cells(i).entirerow.hidden = true end if next
Comments
Post a Comment