vba: read only first 1000 characters of file into string

Posted by every_answer_gets_a_point on Stack Overflow See other posts from Stack Overflow or by every_answer_gets_a_point
Published on 2010-05-11T19:27:29Z Indexed on 2010/05/11 19:34 UTC
Read the original article Hit count: 268

Filed under:
|
|

i need to open a txt file and read it into a string in VBA, but i would like to only get the first 1000 characters.

the file itself is 20mb and i only need the first 1000 characters. is there a way to make this efficient?

© Stack Overflow or respective owner

Related posts about excel

Related posts about excel-vba