Just wanted to add, in order for OpenText to work corectly, FieldInfo will need an Array(#, #) for each column, so that each columns is labeled what type of data Excel is importing.
Here's the Code for using FieldInfo for all the columns:
.Workbooks.OpenText...
I have it set up as FileName:="\\path\" & filename (I)
I had just shortened it to "\\path\filename(I)" because I was in a hurry.
Actually, I've figured out what the problem is, and this is kind of weird, but I guess makes sense. When I use the command...
I've been playing with the files and importing data a cell at a time, and I think it might have something to do with the word "TRUE". There are a few strings in the Bad Files and contains strings that begin with "TRUE " or "TRUE, ". If I change "TRUE" to...
I am experiencing some errors with my program and can not figure out what is going on. I have a VB Program that calls Excel to create a set of workbooks for each given text file in a directory. However, it errors out on 5 textfiles with the following error "Method 'OpenText' of object...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.