Excel
Closed
danehen
Posts
1
Registration date
Wednesday February 4, 2009
Status
Member
Last seen
February 5, 2009
-
Feb 5, 2009 at 02:45 PM
Helper - Feb 5, 2009 at 06:11 PM
Helper - Feb 5, 2009 at 06:11 PM
Related:
- Excel
- Excel marksheet - Guide
- Number to words in excel - Guide
- Excel free download - Download - Spreadsheets
- Kernel for excel - Download - Backup and recovery
- Excel date format dd.mm.yyyy - Guide
1 response
Thiis code assumes that "week 01" is in column A.
Hope this helps.
Private Sub DeleteWeek01()
Dim intRow
Dim intLastRow
intLastRow = Range("A65536").End(xlUp).Row
Dim Del
Del = "week 01"
For intRow = intLastRow To 1 Step -1
Rows(intRow).Select
If Cells(intRow, 1).Value = Del Then
Cells(intRow, 1).Select
Selection.EntireRow.Delete
End If
Next intRow
Range("A1").Select
End Sub
Hope this helps.
Private Sub DeleteWeek01()
Dim intRow
Dim intLastRow
intLastRow = Range("A65536").End(xlUp).Row
Dim Del
Del = "week 01"
For intRow = intLastRow To 1 Step -1
Rows(intRow).Select
If Cells(intRow, 1).Value = Del Then
Cells(intRow, 1).Select
Selection.EntireRow.Delete
End If
Next intRow
Range("A1").Select
End Sub