Now both the amounts are on the same line. I must have referenced the wrong
code to you. The code for "text" shrink is:
Public Function CanShrinkLines(ParamArray arrLines())
Dim x As Integer, strLine As String
For x = 0 To UBound(arrLines)
If Not IsNull(arrLines(x)) And arrLines(x) <> "" Then
strLine = strLine & arrLines(x) & vbCrLf
End If
Next
CanShrinkLines = strLine
End Function
The text works and drops the lines. Since I have both text and currency
columns I also made a currency module. It reads as follows:
Public Function CanShrinkCurrency(ParamArray arrLines())
Dim x As Integer, strLine As String
For x = 0 To UBound(arrLines)
If Not IsNull(arrLines(x)) And arrLines(x) <> "" Then
strLine = strLine & Format(arrLines(x), "Currency") & vbCrLf
If Len(strLine) > 0 Then
strLine = Left$(strLine, Len(strLine) - 2)
End If
End If
Next
CanShrinkCurrency = strLine
End Function
Hope you can figure out what is wrong. thanks TrudyL