View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
cecilia12345[_11_] cecilia12345[_11_] is offline
external usenet poster
 
Posts: 1
Default rows that dont want to be deleted!!!!

i have this code:
lets say numfilas is 6
i want to delete the first *6* rows

Sheets(2).Select
For i = 1 To NumFilas
Range("a1").EntireRow.Delete
Next i

it deletes some rows but some are just not deleted... why?

i have tried also
cells(i,1).entirerow.delete
and
row(i).delete


---
Message posted from http://www.ExcelForum.com/