How do i delete a number of rows on excel using a bot?

How do i delete a number of rows on excel using a bot?