Advertisement
Advertisement
| 09.22.2008 at 06:28AM PDT, ID: 23751305 |
|
[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: |
Sub DeleteNonPierceBooksAndCpty()
Application.ScreenUpdating = False
'Deleting Rows where Non-Pierce Books exist:
Dim strBondCalBookLookup As String, strBondCalCptyLookup As String
Dim strBondCalTradeIdConfirm As String
Dim i As Integer
For i = lngTotalBondsBeforeFilter To 2 Step -1
strBondCalBookLookup = shtBondCal.Cells(i, lngBondDataBookColumn).Value
strBondCalCptyLookup = shtBondCal.Cells(i, lngBondDataCptyColumn).Value
strBondCalTradeIdConfirm = shtBondCal.Cells(i, lngBondDataTradeIdColumn).Value
If Not dicPierceBooks.exists(strBondCalBookLookup) And strBondCalBookLookup <> "" Then
shtBondCal.Rows(i).EntireRow.Delete
End If
If dicExcludedCpty.exists(strBondCalCptyLookup) Then
shtBondCal.Rows(i).EntireRow.Delete
End If
If strBondCalTradeIdConfirm = "Total" Or Left(UCase(strBondCalTradeIdConfirm), 9) <> UCase("bloomberg") Then
shtBondCal.Rows(i).EntireRow.Delete
End If
' If Left(UCase(strBondCalTradeIdConfirm), 9) <> UCase("bloomberg") Then
' shtBondCal.Rows(i).EntireRow.Delete
' End If
Next i
'Find out how many rows are left now after we deleted the Non-Pierce books
lngRowsAfterFilter = shtBondCal.Columns _
(lngBondDataTradeIdColumn).SpecialCells(xlCellTypeConstants, xlTextValues).Rows.Count
Application.ScreenUpdating = True
End Sub
|