Jul 15, 2009 #1 wmbb Technical User Jul 17, 2005 320 NL How do I check if row number of the selected cell in excel is odd or even ?
Jul 15, 2009 #2 PHV MIS Nov 8, 2002 53,708 FR a starting point: Code: If ActiveCell.Row Mod 2 Then MsgBox "active row is odd" Else MsgBox "active row is even" End If Hope This Helps, PH. FAQ219-2884 FAQ181-2886 Upvote 0 Downvote
a starting point: Code: If ActiveCell.Row Mod 2 Then MsgBox "active row is odd" Else MsgBox "active row is even" End If Hope This Helps, PH. FAQ219-2884 FAQ181-2886
Jul 15, 2009 Thread starter #3 wmbb Technical User Jul 17, 2005 320 NL Thnx, this works perfect ! Upvote 0 Downvote