G
Guest
Guess I spoke too soon. The data is formatted correctly but the 2nd line is
blank. Any suggestions. TrudyL
blank. Any suggestions. TrudyL
Douglas J. Steele said:You've put the new logic in the wrong place. As I said, it has to go after
the loop:
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 & Format(arrLines(x), "Currency") & vbCrLf
End If
Next
If Len(strLine) > 0 Then
strLine = Left$(strLine, Len(strLine) - 2)
End If
CanShrinkCurrency = strLine
End Function