![]() |
|
![]() |
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
![]()
I've tried to limit a range
Sub DelTest() Columns("AL2:AL2000").SpecialCells(xlCellTypeBlank s).EntireRow.Delete Columns("AL2:AL2000").SpecialCells(xlCellTypeConst ants, xlTextValues).EntireRow.Delete End Sub but it gives me an error. This one, however, works and does the job perfectly: Sub DelTest() Columns("AL:AL").Resize(Rows.Count - 1).Offset(1).SpecialCells(xlCellTypeBlanks).Entire Row.Delete Columns("AL:AL").Resize(Rows.Count - 1).Offset(1).SpecialCells(xlCellTypeConstants, xlTextValues).EntireRow.Delete End Sub Thanks! |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
beginner | Excel Programming | 5 | 12-26-2014 12:29 AM |
![]() |
Bathroth | Word VBA | 1 | 10-01-2014 01:40 PM |
Removing blank pages at the end of a document | Xanzia | Word | 3 | 06-01-2014 11:13 AM |
first character NOT Alpha numeric or Tilde (~) delete. | ksridh | Word VBA | 5 | 03-17-2014 12:45 AM |
![]() |
dozd | Excel | 1 | 02-22-2013 03:24 AM |