Hi all,
Has anyone in the past used the Excel Automation TextToColumn within 'Microsoft Excel 11.0 Object Library'.Range?
I am trying to take a text field which could be more than 1024 Characters and use the TextToColumn Function with Parameters to set it to Fixed Length of 250 Characters and split the field out to a number of fields.
This would allow me to then set-up an array when reading the Excel sheet back into Navision which would read the 250 character text fields and place them into a text/comments table.
The problems I seem to be getting are on formating the TextToColumn statement so any help would be greatly appreciated.
Regards
Carl Edwards
0
Comments
From what I have read this is down to the Parameters being passed.
](*,)
I passed the VB Constant number so for example
xlTextQualifierNone = -4142 on the TextToColumn Function.
I tried this method with PasteSpecial so passed the command
XlRange.PasteSpecial(-4163,-4142);
This did a Paste Special Values Only with a Paste Special Operations of None.
Hope this helps someone as it's only taken me 5 days to track down the problem.
Carl