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 

Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -