Use SPLIT and ubound.

Build a string of a million byte and add a delimiter. Then when Length goes to "0" split the string and check ubound.
_________________________
Home page: http://www.kixhelp.com/hb/