Advertisement
Advertisement
| 06.11.2008 at 11:09AM PDT, ID: 23476799 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: |
Sub DeleteBlankRows()
'---------------------------------------------------------------------------------------
' Procedure : BlankRows
' DateTime : 07/06/2008 21:38
' Author : Vikram S. Mathur, FCA
' Purpose :
'---------------------------------------------------------------------------------------
'
Dim lRange As Long
Dim lLoop As Long
On Error GoTo DeleteBlankRows_Error
lRange = InputBox("How many rows?", "Row Count", ActiveCell.SpecialCells(xlLastCell).Row)
If lRange <> 0 Then
ActiveCell.Offset(0, 0).Select
Application.ScreenUpdating = False
For lLoop = 1 To lRange
If Trim(ActiveCell.Value) = "" Then
Selection.EntireRow.Delete
Else: ActiveCell.Offset(1, 0).Select
End If
Application.StatusBar = "Checking Row: " & lLoop & " of " & lRange
Next lLoop
End If
Application.StatusBar = False
Application.ScreenUpdating = True
On Error GoTo 0
DeleteBlankRows_Exit:
Exit Sub
DeleteBlankRows_Error:
MsgBox "Error " & Err.Number & " (" & Err.Description & ") in procedure DeleteBlankRows of Module basDeleteBlankRows"
Resume DeleteBlankRows_Exit
End Sub
|