excel - How to verify if cell address falls within a specified range -
i trying check if specific cell address falls within range have specified. example , have range("c10:c50")
. pick cell address c15
. want check if cell address c15
within range c10:c50
. not sure how write code this.
sub worksheet_calculate() dim s shape r = range("d8:d21,d52:d64,d107:d117") findshape = "not found" each s in me.shapes if s.topleftcell.address = r.address findshape = s.name msgbox findshape, vbokonly 'exit 'no need keep going end if next
Comments
Post a Comment