Selecting the first non blank cell in Range

V

VBA Noob

Hi,

Is the only way to select the first non blank cell in a range to use a
if statement.

e.g If D1 is the first cell in range A1 to F1 with info I want t
return 1 for A to for B and so on. So D1 would return 4

VBA Noo
 
B

Bob Phillips

Perhaps

MsgBox Range("A1").End(xlToRight).Offset(0, 1).Column


--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 
Top