Excel
Closed
danehen
Posts
1
Registration date
Wednesday 4 February 2009
Status
Member
Last seen
5 February 2009
-
5 Feb 2009 à 14:45
Helper - 5 Feb 2009 à 18:11
Helper - 5 Feb 2009 à 18:11
Related:
- Excel
- Excel mod apk for pc - Download - Spreadsheets
- Vat calculation excel - Guide
- Kernel for excel repair - Download - Backup and recovery
- Arrow keys not working in excel - Guide
- Excel clear formatting - 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