Hello there,
I recorded a macro to import some data into excel from a text file. I had to set each column as text datatype. Is there a way I can make it dynamic so I can use this module for other imports? Here's the line that sets the datatype:
Is there any way I can make that a dynamic array or a dynamic datatype for the entire import? Thank you in advance.
I recorded a macro to import some data into excel from a text file. I had to set each column as text datatype. Is there a way I can make it dynamic so I can use this module for other imports? Here's the line that sets the datatype:
Code:
.TextFileColumnDataTypes = Array(2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, _
2, 2)