Click here to Skip to main content
15,899,679 members

Comments by Franz Schweizer (Top 22 by date)

Franz Schweizer 6-Jun-22 13:18pm View    
believe it or not, im not even able to get 64k out of it either. in fact, im only able to pass off 2400 bytes before it barks at me with Procedure too large. The other method i had with the coll.Add "1,2,3,4,5,6,7,8" strings actually allowed me to add all the data no problem. So I may have to work with that. For that, I need to somehow be able to use Split method and be able to build an array out of that but not even sure if that will also not bark at me too.
Franz Schweizer 6-Jun-22 2:55am View    
thanks. i have some work to do to think about how to go about getting this done, might have to take a crash course on VBA
Franz Schweizer 5-Jun-22 17:17pm View    
well i got an update. i tried adding all the data using this method and it came back with Procedure too large. the only method that actually seemed to allow me to copy all the data was using the string method with the arraylist initially.
Franz Schweizer 5-Jun-22 14:15pm View    
the issue is the function has this whole stream crap involved which you can see it saves this stream. its complicated. tried removing that and just writing it but the data is incorrect
Franz Schweizer 5-Jun-22 14:02pm View    
i agree. i have been trying to append as you are mentioning, to open and close. i know i can append to a text file since this works here. just trying to re-write this crazy WriteBinary function but you have helped tremendously.

Sub VBA_to_append_existing_text_file()
Dim strFile_Path As String
strFile_Path = "C:\test.txt"
Open strFile_Path For Append As #1
Write #1, "This is my sample text"
Close #1
End Sub