Assuming CW1 is spare cell, you can use this code to store present row nmber of Myname cell in variable A.

Range("CW1").FormulaR1C1 = "=ROW(Myname)"
A = Val(Range("CW1").Value)
Range("CW1").Value = ""