How to Use Chip Pearson's Text Import Code
ps. When I do this kind of stuff, I usually just open the file to its own
workbook (recording a macro when I specify the file type) and then copy that
used range to my "real" location.
Dave Peterson wrote:
#1. You'll have to adjust Chip's code to move down to the next available cell
after it imports a file (but before it imports the next).
#2. This two is in your variation of Chip's code. I don't understand how you
got potentially 6 columns out of the data you posted.
socrtwo wrote:
<<snipped
Mr. Peterson,
Excellent it works great but there are two problems:
1. The text files keep overwriting themselves on import instead of
moving to the next free row down (I have the text import start at Cell
K251 and this can actually stay as a constant instead of pasting to the
active cell).
2. Secondly, only the first and second columns of the data paste in.
The data is in the form of drive mapping information preceded by user
names. For instance:
pinchpa H: \\inetpub.application.net\change Netware Server
pinchpa J: \\inetpub.application.net\test2
pinchpa S: \\inetpub.application.net\change_shared Microsoft Windows
Server
You can see there is potentially 6 columns separated by spaces. I need
only the irst three to import. VBA is stopping after the colon and not
importing the third column (let alone the 4th, 5th and 6th which I
don't want anyway). Do I need to invoke the text wizard?
I appreciate your help.
--
Dave Peterson
--
Dave Peterson
|