How to get row index if Excel has duplicate row

Still not get it . What to write in Write range ?