Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-12-2015, 06:06 AM
srinidhi.mv88 srinidhi.mv88 is offline Macro to read text file and organize data in excel Windows 7 64bit Macro to read text file and organize data in excel Office 2010 64bit
Novice
Macro to read text file and organize data in excel
 
Join Date: Apr 2015
Posts: 11
srinidhi.mv88 is on a distinguished road
Default Macro to read text file and organize data in excel

Hello all,

I need to write a macro which imports a text-file and organize it in 4 coulmns. the text file is as shown below.
1.JPG


by the end the excel template should remove the extra lines and include only the need information as shown below.
2.JPG

Could any one please help me. I am new to excel VBA programming. till now i was able to create a table which fills data from text file. but its still having delimiter problem. i cant fix it as the name of the type is sometimes small and sometimes large.

It would be of great help if anyone could help me.

Thanks a lot,
chini
Reply With Quote
  #2  
Old 05-12-2015, 06:47 AM
NoSparks NoSparks is offline Macro to read text file and organize data in excel Windows 7 64bit Macro to read text file and organize data in excel Office 2010 32bit
Excel Hobbyist
 
Join Date: Nov 2013
Location: British Columbia, Canada
Posts: 831
NoSparks is just really niceNoSparks is just really niceNoSparks is just really niceNoSparks is just really niceNoSparks is just really nice
Default

Pretty sure it would be to your advantage to post files people could work with rather than pictures.

For assistance with VBA code you already have, you would need to let people see it.
Reply With Quote
  #3  
Old 05-12-2015, 07:08 AM
srinidhi.mv88 srinidhi.mv88 is offline Macro to read text file and organize data in excel Windows 7 64bit Macro to read text file and organize data in excel Office 2010 64bit
Novice
Macro to read text file and organize data in excel
 
Join Date: Apr 2015
Posts: 11
srinidhi.mv88 is on a distinguished road
Default Macro to read text file and organize data in excel

Here is the text file
check_data.txt
here is the excel file
Check_data.xlsm

Please see the files and let me know how can i approach the solution.
Attached Files
File Type: xlsx Check_data.xlsx (9.2 KB, 7 views)
Reply With Quote
  #4  
Old 05-12-2015, 08:15 PM
NoSparks NoSparks is offline Macro to read text file and organize data in excel Windows 7 64bit Macro to read text file and organize data in excel Office 2010 32bit
Excel Hobbyist
 
Join Date: Nov 2013
Location: British Columbia, Canada
Posts: 831
NoSparks is just really niceNoSparks is just really niceNoSparks is just really niceNoSparks is just really niceNoSparks is just really nice
Default

This doesn't do everything you're after, it doesn't put in the borders and it doesn't merge any cells, which is something I would avoid.

In the code you'll need to change the location for your text file.
I'm sure somebody else will have better ideas of how to do this but until then I hope this is of some use.

Good Luck
NoSparks
Attached Files
File Type: xlsm Check_data.xlsm (21.5 KB, 9 views)
Reply With Quote
  #5  
Old 05-15-2015, 08:22 AM
NoSparks NoSparks is offline Macro to read text file and organize data in excel Windows 7 64bit Macro to read text file and organize data in excel Office 2010 32bit
Excel Hobbyist
 
Join Date: Nov 2013
Location: British Columbia, Canada
Posts: 831
NoSparks is just really niceNoSparks is just really niceNoSparks is just really niceNoSparks is just really niceNoSparks is just really nice
Default

Guess that was a waste of time.
Reply With Quote
  #6  
Old 05-19-2015, 12:06 AM
srinidhi.mv88 srinidhi.mv88 is offline Macro to read text file and organize data in excel Windows 7 64bit Macro to read text file and organize data in excel Office 2010 64bit
Novice
Macro to read text file and organize data in excel
 
Join Date: Apr 2015
Posts: 11
srinidhi.mv88 is on a distinguished road
Default

Hi,

Sorry was building the code and had no time to reply. That was helpful thanks a lot.

I am fine tuning the code which you have sent me.

Thanks again.

Regards,
Chini
Reply With Quote
Reply

Tags
excel 2010, import from text, vba macro

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to read text file and organize data in excel macro, data import from the ONLY text file in current folder ue418 Excel Programming 5 10-28-2017 12:52 PM
How to read binary data from currently open file? XmisterIS Word VBA 0 04-09-2014 04:38 AM
Macro to read text file and organize data in excel How to convert a text file to an Excel file with the data format automatically? mradmin Excel 6 10-16-2013 10:34 AM
Macro to read text file and organize data in excel Read text Report file with VBA and write parsed fields to Excel workbook tpcervelo Excel Programming 1 01-05-2012 10:14 PM
Macro to read text file and organize data in excel How to organize and insert blank cells between a huge number of data? tareq Excel 12 09-29-2010 02:12 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:42 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft