I am going crazy trying to understand what is wrong with my code. The entire routine is down below.
I'm using Workbook.OpenText to get a TXT file. I then use
which is the recommended practice from what I've seen on the forums. The problem is, my Watch Window shows a + symbol, but when I expand it, it says <no variables> (I have a break point so that I should be able to see the data). I get no errors on the following lines when I grab the number of non-blank rows (my function), and I can print the wb.Name as well. But when I try to set the values in the Range to an array, they're all blanks.
Perhaps related, I get a "Range of object '_Worksheet' failed" error if I try to use DataWS.Range() instead of DataWS.Cells() in the For Loop down below.
Does anyone know why I can't see the object data in the Watch Window, and why my array values are all blank strings? Thanks in advance!!!
Colin
P.S. I'm using Option Explicit and am using the standard Excel error handler during debugging.
Bookmarks