View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
ChrisM ChrisM is offline
external usenet poster
 
Posts: 15
Default Counter to delete a row

I have a macro which deletes row 6 from my worksheet.
eg "Rows("6:6").Select"
However I want to amend this code so that instead of deleting row 6 I want
to delete the row number equal to a counter value that I have defined.
When I come to a row I want to delete, what value do I put in the code
"Rows("?:?").Select" to delete the row number to the value of the counter.

thanks for your help