As Andy49 recommended, I expanded his function like this (see below). Now the issue with the characters being of different length is solved... BUT
Code:
Option Compare Database
Global break(4) As Integer
Option Explicit
Public Function splitter(textline As String, ct As Integer, length As Integer) As String
break(ct) = nextspace(textline, break(ct - 1), length)
splitter = Mid(textline, break(ct - 1) + 1, break(ct) - break(ct - 1))
'Mid ( text, start_position, number_of_characters )
End Function
Public Function nextspace(textstring As String, i As Integer, length As Integer) As Integer
nextspace = InStr(i + length, textstring, " ")
'InStr ( [start], string_being_searched, string2, [compare] )
If nextspace = 0 Then
nextspace = Len(textstring)
End If
End Function
BUT, the problem is the "nextspace" function.... instead of going to the next space, it should stop at the step before!
Ideas?