Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / November 2007

Tip: Looking for answers? Try searching our database.

Text to Column with fixed width in VBA

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
kathy.aubin@gmail.com - 17 Nov 2007 00:30 GMT
I have text file with about 300 lines items that are not delimited
but
the width of each columns is fixed and do have the value. For
example,
cell 1 is char(1-2), cell 2 is char(2-14)....
I want to be able to copy the whole thing in Excel, run a macro that
split the string into the different cell.
I can manually do it using the Text to Column function and setting
the
width one by one but it's time consuming since this import is
occuring
everyday.

Can you help?

Thanks,
Dave Peterson - 17 Nov 2007 00:40 GMT
Record a macro when you do it once and you'll see the code you want to use.

> I have text file with about 300 lines items that are not delimited
> but
[quoted text clipped - 12 lines]
>
> Thanks,

Signature

Dave Peterson

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.