distraughtintern
New Member
- Joined
- Jun 8, 2011
- Messages
- 5
I am writing a macro to generate daily sales reports. The macro works fully except for a nested loop consisting of if statements. The only thing wrong with the loop or if statements is that it is not adding the decimal values.
Here is ALL the CODE. What I think the problem area is between these guys ""
Sub Daily_tix_rep()
Dim ToDay
Dim iBottomRow As Integer
Dim iRowCounter As Integer
Dim iReportCount As Integer
Dim iVisa As Integer
Dim iAmex As Integer
Dim iMc As Integer
Dim iCreditCount As Integer
iBottomRow = Sheets("Requests and Comps").Range("D12").End(xlDown).Row
ReportCount = 7
Sheets("Daily Ticket Inc. Report").Range("A7:N118").delete Shift:=xlToLeft
ToDay = Sheets("Daily Ticket Inc. Report").Range("J1").Value
For iRowCounter = 12 To iBottomRow
If Range("AC" & iRowCounter) = ToDay Then
ReportCount = ReportCount + 1
Sheets("Daily Ticket Inc. Report").Range("A" & ReportCount) = "A&B"
Range("A5").Copy
Sheets("Daily Ticket Inc. Report").Range("B" & ReportCount).PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("A3").Copy
Sheets("Daily Ticket Inc. Report").Range("C" & ReportCount).PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("W" & iRowCounter).Copy
Sheets("Daily Ticket Inc. Report").Range("D" & ReportCount).PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("S" & iRowCounter).Copy
Sheets("Daily Ticket Inc. Report").Range("E" & ReportCount).PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("U" & iRowCounter).Copy
Sheets("Daily Ticket Inc. Report").Range("F" & ReportCount).PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("Z" & iRowCounter).Copy
Sheets("Daily Ticket Inc. Report").Range("G" & ReportCount).PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("Y" & iRowCounter).Copy
Sheets("Daily Ticket Inc. Report").Range("H" & ReportCount).PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("AD" & iRowCounter).Copy
Sheets("Daily Ticket Inc. Report").Range("K" & ReportCount).PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("V" & iRowCounter).Copy
Sheets("Daily Ticket Inc. Report").Range("I" & ReportCount).PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Sheets("Daily Ticket Inc. Report").Range("J" & ReportCount) = WorksheetFunction.Sum(Sheets("Daily Ticket Inc. Report").Range("D" & ReportCount, "I" & ReportCount))
Sheets("Daily Ticket Inc. Report").Range("B" & ReportCount).NumberFormat = "m/d/yyyy"
Sheets("Daily Ticket Inc. Report").Range("D" & ReportCount).NumberFormat = "$#,##0.00"
Sheets("Daily Ticket Inc. Report").Range("E" & ReportCount).NumberFormat = "$#,##0.00"
Sheets("Daily Ticket Inc. Report").Range("F" & ReportCount).NumberFormat = "$#,##0.00"
Sheets("Daily Ticket Inc. Report").Range("G" & ReportCount).NumberFormat = "$#,##0.00"
Sheets("Daily Ticket Inc. Report").Range("H" & ReportCount).NumberFormat = "$#,##0.00"
Sheets("Daily Ticket Inc. Report").Range("I" & ReportCount).NumberFormat = "$#,##0.00"
Sheets("Daily Ticket Inc. Report").Range("J" & ReportCount).NumberFormat = "$#,##0.00"
Sheets("Daily Ticket Inc. Report").Range("J" & ReportCount).Font.Bold = True
End If
Next
Dim iReportBotRow As Integer
Dim iReportCount2 As Integer
iReportBotRow = Sheets("Daily Ticket Inc. Report").Range("D8").End(xlDown).Row
ReportCount = ReportCount + 2
iReportCount2 = ReportCount
Sheets("Daily Ticket Inc. Report").Range("C" & ReportCount) = "Amount to apply as ticket income:"
Sheets("Daily Ticket Inc. Report").Range("D" & ReportCount) = WorksheetFunction.Sum(Sheets("Daily Ticket Inc. Report").Range("D8", "D" & iReportBotRow))
Sheets("Daily Ticket Inc. Report").Range("C" & ReportCount).Font.Bold = True
Sheets("Daily Ticket Inc. Report").Range("D" & ReportCount).Font.Bold = True
Sheets("Daily Ticket Inc. Report").Range("D" & ReportCount).NumberFormat = "$#,##0.00"
ReportCount = ReportCount + 1
Sheets("Daily Ticket Inc. Report").Range("C" & ReportCount) = "Amount to apply as service charges:"
Sheets("Daily Ticket Inc. Report").Range("D" & ReportCount) = WorksheetFunction.Sum(Sheets("Daily Ticket Inc. Report").Range("E8", "E" & iReportBotRow))
Sheets("Daily Ticket Inc. Report").Range("C" & ReportCount).Font.Bold = True
Sheets("Daily Ticket Inc. Report").Range("D" & ReportCount).Font.Bold = True
Sheets("Daily Ticket Inc. Report").Range("D" & ReportCount).NumberFormat = "$#,##0.00"
ReportCount = ReportCount + 1
Sheets("Daily Ticket Inc. Report").Range("C" & ReportCount) = "Amount to apply as 3% CC charges:"
Sheets("Daily Ticket Inc. Report").Range("D" & ReportCount) = WorksheetFunction.Sum(Sheets("Daily Ticket Inc. Report").Range("F8", "F" & iReportBotRow))
Sheets("Daily Ticket Inc. Report").Range("C" & ReportCount).Font.Bold = True
Sheets("Daily Ticket Inc. Report").Range("D" & ReportCount).Font.Bold = True
Sheets("Daily Ticket Inc. Report").Range("D" & ReportCount).NumberFormat = "$#,##0.00"
ReportCount = ReportCount + 1
Sheets("Daily Ticket Inc. Report").Range("C" & ReportCount) = "Amount to apply as parking:"
Sheets("Daily Ticket Inc. Report").Range("D" & ReportCount) = WorksheetFunction.Sum(Sheets("Daily Ticket Inc. Report").Range("G8", "G" & iReportBotRow))
Sheets("Daily Ticket Inc. Report").Range("C" & ReportCount).Font.Bold = True
Sheets("Daily Ticket Inc. Report").Range("D" & ReportCount).Font.Bold = True
Sheets("Daily Ticket Inc. Report").Range("D" & ReportCount).NumberFormat = "$#,##0.00"
ReportCount = ReportCount + 1
Sheets("Daily Ticket Inc. Report").Range("C" & ReportCount) = "Amount to apply as tour fee:"
Sheets("Daily Ticket Inc. Report").Range("D" & ReportCount) = WorksheetFunction.Sum(Sheets("Daily Ticket Inc. Report").Range("H8", "H" & iReportBotRow))
Sheets("Daily Ticket Inc. Report").Range("C" & ReportCount).Font.Bold = True
Sheets("Daily Ticket Inc. Report").Range("D" & ReportCount).Font.Bold = True
Sheets("Daily Ticket Inc. Report").Range("D" & ReportCount).NumberFormat = "$#,##0.00"
ReportCount = ReportCount + 1
Sheets("Daily Ticket Inc. Report").Range("C" & ReportCount) = "Shipping fee:"
Sheets("Daily Ticket Inc. Report").Range("D" & ReportCount) = WorksheetFunction.Sum(Sheets("Daily Ticket Inc. Report").Range("I8", "I" & iReportBotRow))
Sheets("Daily Ticket Inc. Report").Range("C" & ReportCount).Font.Bold = True
Sheets("Daily Ticket Inc. Report").Range("D" & ReportCount).Font.Bold = True
Sheets("Daily Ticket Inc. Report").Range("D" & ReportCount).NumberFormat = "$#,##0.00"
ReportCount = ReportCount + 1
iVisa = 0
iAmex = 0
iMc = 0
iCreditCount = 0
For iCreditCount = 8 To iReportBotRow
If Sheets("Daily Ticket Inc. Report").Range("K" & iCreditCount) = "VISA" Then
iVisa = iVisa + Sheets("Daily Ticket Inc. Report").Range("J" & iCreditCount).Value
End If
If Sheets("Daily Ticket Inc. Report").Range("K" & iCreditCount) = "MC" Then
iMc = iMc + Sheets("Daily Ticket Inc. Report").Range("J" & iCreditCount).Value
End If
If Sheets("Daily Ticket Inc. Report").Range("K" & iCreditCount) = "AMEX" Then
iAmex = iAmex + Sheets("Daily Ticket Inc. Report").Range("J" & iCreditCount).Value
End If
Debug.Print iVisa
Debug.Print iMc
Debug.Print iAmex
Next
Dim iGrandTot As Integer
ReportCount = ReportCount + 1
Sheets("Daily Ticket Inc. Report").Range("I" & ReportCount) = "Grand Total:"
iGrandTot = iMc + iVisa + iAmex
Sheets("Daily Ticket Inc. Report").Range("J" & ReportCount) = iGrandTot
Sheets("Daily Ticket Inc. Report").Range("I" & ReportCount).Font.Bold = True
Sheets("Daily Ticket Inc. Report").Range("J" & ReportCount).Font.Bold = True
Sheets("Daily Ticket Inc. Report").Range("J" & ReportCount).NumberFormat = "$#,##0.00"
ReportCount = ReportCount + 1
Sheets("Daily Ticket Inc. Report").Range("I" & ReportCount) = "Visa:"
Sheets("Daily Ticket Inc. Report").Range("J" & ReportCount) = iVisa
Sheets("Daily Ticket Inc. Report").Range("J" & ReportCount).NumberFormat = "$#,##0.00"
ReportCount = ReportCount + 1
Sheets("Daily Ticket Inc. Report").Range("I" & ReportCount) = "Amex:"
Sheets("Daily Ticket Inc. Report").Range("J" & ReportCount) = iAmex
Sheets("Daily Ticket Inc. Report").Range("J" & ReportCount).NumberFormat = "$#,##0.00"
ReportCount = ReportCount + 1
Sheets("Daily Ticket Inc. Report").Range("I" & ReportCount) = "MC:"
Sheets("Daily Ticket Inc. Report").Range("J" & ReportCount) = iMc
Sheets("Daily Ticket Inc. Report").Range("J" & ReportCount).NumberFormat = "$#,##0.00"
Values the if statement is working with They alternate (MC,AMEX, MC, AMEX)
<table style="border-collapse: collapse; width: 69pt;" width="92" border="0" cellpadding="0" cellspacing="0"><col style="width: 69pt;" width="92"> <tbody><tr style="height: 12.75pt;" height="17"> <td class="xl66" style="height: 12.75pt; width: 69pt;" width="92" align="right" height="17">$144.00</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl66" style="height: 12.75pt;" align="right" height="17">$114.50</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl66" style="height: 12.75pt;" align="right" height="17">$146.50</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl66" style="height: 12.75pt;" align="right" height="17">$171.00</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl66" style="height: 12.75pt;" align="right" height="17">$72.00</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl66" style="height: 12.75pt;" align="right" height="17">$229.00</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl66" style="height: 12.75pt;" align="right" height="17">$109.00</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl66" style="height: 12.75pt;" align="right" height="17">$217.50</td> </tr> </tbody></table>
Debug.print printout
0
144
0
0
144
114
0
290
114
0
290
285
0
362
285
0
362
514
0
471
514
0
471
732
Any ideas why it doesnt add the cents/how to fix it?
Will upload a clean document minus the test numbers shortly.
Here is ALL the CODE. What I think the problem area is between these guys ""
Sub Daily_tix_rep()
Dim ToDay
Dim iBottomRow As Integer
Dim iRowCounter As Integer
Dim iReportCount As Integer
Dim iVisa As Integer
Dim iAmex As Integer
Dim iMc As Integer
Dim iCreditCount As Integer
iBottomRow = Sheets("Requests and Comps").Range("D12").End(xlDown).Row
ReportCount = 7
Sheets("Daily Ticket Inc. Report").Range("A7:N118").delete Shift:=xlToLeft
ToDay = Sheets("Daily Ticket Inc. Report").Range("J1").Value
For iRowCounter = 12 To iBottomRow
If Range("AC" & iRowCounter) = ToDay Then
ReportCount = ReportCount + 1
Sheets("Daily Ticket Inc. Report").Range("A" & ReportCount) = "A&B"
Range("A5").Copy
Sheets("Daily Ticket Inc. Report").Range("B" & ReportCount).PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("A3").Copy
Sheets("Daily Ticket Inc. Report").Range("C" & ReportCount).PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("W" & iRowCounter).Copy
Sheets("Daily Ticket Inc. Report").Range("D" & ReportCount).PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("S" & iRowCounter).Copy
Sheets("Daily Ticket Inc. Report").Range("E" & ReportCount).PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("U" & iRowCounter).Copy
Sheets("Daily Ticket Inc. Report").Range("F" & ReportCount).PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("Z" & iRowCounter).Copy
Sheets("Daily Ticket Inc. Report").Range("G" & ReportCount).PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("Y" & iRowCounter).Copy
Sheets("Daily Ticket Inc. Report").Range("H" & ReportCount).PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("AD" & iRowCounter).Copy
Sheets("Daily Ticket Inc. Report").Range("K" & ReportCount).PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("V" & iRowCounter).Copy
Sheets("Daily Ticket Inc. Report").Range("I" & ReportCount).PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Sheets("Daily Ticket Inc. Report").Range("J" & ReportCount) = WorksheetFunction.Sum(Sheets("Daily Ticket Inc. Report").Range("D" & ReportCount, "I" & ReportCount))
Sheets("Daily Ticket Inc. Report").Range("B" & ReportCount).NumberFormat = "m/d/yyyy"
Sheets("Daily Ticket Inc. Report").Range("D" & ReportCount).NumberFormat = "$#,##0.00"
Sheets("Daily Ticket Inc. Report").Range("E" & ReportCount).NumberFormat = "$#,##0.00"
Sheets("Daily Ticket Inc. Report").Range("F" & ReportCount).NumberFormat = "$#,##0.00"
Sheets("Daily Ticket Inc. Report").Range("G" & ReportCount).NumberFormat = "$#,##0.00"
Sheets("Daily Ticket Inc. Report").Range("H" & ReportCount).NumberFormat = "$#,##0.00"
Sheets("Daily Ticket Inc. Report").Range("I" & ReportCount).NumberFormat = "$#,##0.00"
Sheets("Daily Ticket Inc. Report").Range("J" & ReportCount).NumberFormat = "$#,##0.00"
Sheets("Daily Ticket Inc. Report").Range("J" & ReportCount).Font.Bold = True
End If
Next
Dim iReportBotRow As Integer
Dim iReportCount2 As Integer
iReportBotRow = Sheets("Daily Ticket Inc. Report").Range("D8").End(xlDown).Row
ReportCount = ReportCount + 2
iReportCount2 = ReportCount
Sheets("Daily Ticket Inc. Report").Range("C" & ReportCount) = "Amount to apply as ticket income:"
Sheets("Daily Ticket Inc. Report").Range("D" & ReportCount) = WorksheetFunction.Sum(Sheets("Daily Ticket Inc. Report").Range("D8", "D" & iReportBotRow))
Sheets("Daily Ticket Inc. Report").Range("C" & ReportCount).Font.Bold = True
Sheets("Daily Ticket Inc. Report").Range("D" & ReportCount).Font.Bold = True
Sheets("Daily Ticket Inc. Report").Range("D" & ReportCount).NumberFormat = "$#,##0.00"
ReportCount = ReportCount + 1
Sheets("Daily Ticket Inc. Report").Range("C" & ReportCount) = "Amount to apply as service charges:"
Sheets("Daily Ticket Inc. Report").Range("D" & ReportCount) = WorksheetFunction.Sum(Sheets("Daily Ticket Inc. Report").Range("E8", "E" & iReportBotRow))
Sheets("Daily Ticket Inc. Report").Range("C" & ReportCount).Font.Bold = True
Sheets("Daily Ticket Inc. Report").Range("D" & ReportCount).Font.Bold = True
Sheets("Daily Ticket Inc. Report").Range("D" & ReportCount).NumberFormat = "$#,##0.00"
ReportCount = ReportCount + 1
Sheets("Daily Ticket Inc. Report").Range("C" & ReportCount) = "Amount to apply as 3% CC charges:"
Sheets("Daily Ticket Inc. Report").Range("D" & ReportCount) = WorksheetFunction.Sum(Sheets("Daily Ticket Inc. Report").Range("F8", "F" & iReportBotRow))
Sheets("Daily Ticket Inc. Report").Range("C" & ReportCount).Font.Bold = True
Sheets("Daily Ticket Inc. Report").Range("D" & ReportCount).Font.Bold = True
Sheets("Daily Ticket Inc. Report").Range("D" & ReportCount).NumberFormat = "$#,##0.00"
ReportCount = ReportCount + 1
Sheets("Daily Ticket Inc. Report").Range("C" & ReportCount) = "Amount to apply as parking:"
Sheets("Daily Ticket Inc. Report").Range("D" & ReportCount) = WorksheetFunction.Sum(Sheets("Daily Ticket Inc. Report").Range("G8", "G" & iReportBotRow))
Sheets("Daily Ticket Inc. Report").Range("C" & ReportCount).Font.Bold = True
Sheets("Daily Ticket Inc. Report").Range("D" & ReportCount).Font.Bold = True
Sheets("Daily Ticket Inc. Report").Range("D" & ReportCount).NumberFormat = "$#,##0.00"
ReportCount = ReportCount + 1
Sheets("Daily Ticket Inc. Report").Range("C" & ReportCount) = "Amount to apply as tour fee:"
Sheets("Daily Ticket Inc. Report").Range("D" & ReportCount) = WorksheetFunction.Sum(Sheets("Daily Ticket Inc. Report").Range("H8", "H" & iReportBotRow))
Sheets("Daily Ticket Inc. Report").Range("C" & ReportCount).Font.Bold = True
Sheets("Daily Ticket Inc. Report").Range("D" & ReportCount).Font.Bold = True
Sheets("Daily Ticket Inc. Report").Range("D" & ReportCount).NumberFormat = "$#,##0.00"
ReportCount = ReportCount + 1
Sheets("Daily Ticket Inc. Report").Range("C" & ReportCount) = "Shipping fee:"
Sheets("Daily Ticket Inc. Report").Range("D" & ReportCount) = WorksheetFunction.Sum(Sheets("Daily Ticket Inc. Report").Range("I8", "I" & iReportBotRow))
Sheets("Daily Ticket Inc. Report").Range("C" & ReportCount).Font.Bold = True
Sheets("Daily Ticket Inc. Report").Range("D" & ReportCount).Font.Bold = True
Sheets("Daily Ticket Inc. Report").Range("D" & ReportCount).NumberFormat = "$#,##0.00"
ReportCount = ReportCount + 1
iVisa = 0
iAmex = 0
iMc = 0
iCreditCount = 0
For iCreditCount = 8 To iReportBotRow
If Sheets("Daily Ticket Inc. Report").Range("K" & iCreditCount) = "VISA" Then
iVisa = iVisa + Sheets("Daily Ticket Inc. Report").Range("J" & iCreditCount).Value
End If
If Sheets("Daily Ticket Inc. Report").Range("K" & iCreditCount) = "MC" Then
iMc = iMc + Sheets("Daily Ticket Inc. Report").Range("J" & iCreditCount).Value
End If
If Sheets("Daily Ticket Inc. Report").Range("K" & iCreditCount) = "AMEX" Then
iAmex = iAmex + Sheets("Daily Ticket Inc. Report").Range("J" & iCreditCount).Value
End If
Debug.Print iVisa
Debug.Print iMc
Debug.Print iAmex
Next
Dim iGrandTot As Integer
ReportCount = ReportCount + 1
Sheets("Daily Ticket Inc. Report").Range("I" & ReportCount) = "Grand Total:"
iGrandTot = iMc + iVisa + iAmex
Sheets("Daily Ticket Inc. Report").Range("J" & ReportCount) = iGrandTot
Sheets("Daily Ticket Inc. Report").Range("I" & ReportCount).Font.Bold = True
Sheets("Daily Ticket Inc. Report").Range("J" & ReportCount).Font.Bold = True
Sheets("Daily Ticket Inc. Report").Range("J" & ReportCount).NumberFormat = "$#,##0.00"
ReportCount = ReportCount + 1
Sheets("Daily Ticket Inc. Report").Range("I" & ReportCount) = "Visa:"
Sheets("Daily Ticket Inc. Report").Range("J" & ReportCount) = iVisa
Sheets("Daily Ticket Inc. Report").Range("J" & ReportCount).NumberFormat = "$#,##0.00"
ReportCount = ReportCount + 1
Sheets("Daily Ticket Inc. Report").Range("I" & ReportCount) = "Amex:"
Sheets("Daily Ticket Inc. Report").Range("J" & ReportCount) = iAmex
Sheets("Daily Ticket Inc. Report").Range("J" & ReportCount).NumberFormat = "$#,##0.00"
ReportCount = ReportCount + 1
Sheets("Daily Ticket Inc. Report").Range("I" & ReportCount) = "MC:"
Sheets("Daily Ticket Inc. Report").Range("J" & ReportCount) = iMc
Sheets("Daily Ticket Inc. Report").Range("J" & ReportCount).NumberFormat = "$#,##0.00"
Values the if statement is working with They alternate (MC,AMEX, MC, AMEX)
<table style="border-collapse: collapse; width: 69pt;" width="92" border="0" cellpadding="0" cellspacing="0"><col style="width: 69pt;" width="92"> <tbody><tr style="height: 12.75pt;" height="17"> <td class="xl66" style="height: 12.75pt; width: 69pt;" width="92" align="right" height="17">$144.00</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl66" style="height: 12.75pt;" align="right" height="17">$114.50</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl66" style="height: 12.75pt;" align="right" height="17">$146.50</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl66" style="height: 12.75pt;" align="right" height="17">$171.00</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl66" style="height: 12.75pt;" align="right" height="17">$72.00</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl66" style="height: 12.75pt;" align="right" height="17">$229.00</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl66" style="height: 12.75pt;" align="right" height="17">$109.00</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl66" style="height: 12.75pt;" align="right" height="17">$217.50</td> </tr> </tbody></table>
Debug.print printout
0
144
0
0
144
114
0
290
114
0
290
285
0
362
285
0
362
514
0
471
514
0
471
732
Any ideas why it doesnt add the cents/how to fix it?
Will upload a clean document minus the test numbers shortly.