excel - How to directly upload contents from a JSON file -
i need upload data text file excel. it's json data. it's around 50kb. if regularly upload cell, excel freezes. there way upload contents of file directly vba variable?
found it, solution here , works:
dim filename string, textdata string, textrow string, fileno integer filename = "c:\text.txt" fileno = freefile 'get first free file number open filename input #fileno while not eof(fileno) line input #fileno, textrow textdata = textdata & textrow loop close #fileno
Comments
Post a Comment