Hello everybody,
I am working on some sort of excel ledger at work. When you initialize it, it grabs data from a text file, processes it and inserts it in a pre-made table. I'm having some issues with two subroutines in particular that are called during this whole process. They are the subroutines that add lines to the table (so were sure there are enough in the table to take the data we are going to feed it) and the one that takes the array I had prepared from the text file and writes it out in the table. Here they are:
I have verified with countless Debug.Print calls and re-runs. The procedures are called, they run to the end, the array & the range have the exact same size, the array does contain data, the array is a Variant type, but somehow those two actions (adding lines and pasting the array) are never done. Everything else works just fine. I don't even get an error or anything like that, the lines are just ignored. Even worse, when I write a dummy subroutine to set up a dummy array and feed it to Populate_TC85, everything seems to work fine. I kind of am at my wits' end here.
The only thing I could imagine (I'll test it out tomorrow) is that maybe it's because my array contains varied data types (strings, numbers, vbNullStrings...), while the dummy array I created to test only contained strings...?
Does anybody have a stroke of genius of why that might be?
Thanks a bunch in advance!
Bookmarks