vba - looping through an unknown range of rows in excel -
say have 5 columns , god knows how many row. cells in range populated except few cells in last column. need loop through rows (starting in a1) until last row, , each row has cell populated in last column, display message box saying "hello"
i'm unsure how start loop. i've tried googling, dont understand. know how i'd check empty cells, , how diply message box, not how find end of range.
additional variant side
dim cl range activesheet each cl in .range(.[a1].currentregion.columns(5).address) if cl.value <> "" msgbox cl.address(0, 0) & " has value (" & cl.value & ")" end if next cl end