Other Programming Languages
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreOther Programming Languages

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 6th, 2007, 11:39 PM
oracle_coorgi oracle_coorgi is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2006
Posts: 24 oracle_coorgi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 15 m 15 sec
Reputation Power: 0
Macro to import .txt to xls urgent

hi
can any one there help me with a critical issue .
IWANT to import these .txt to xls through MACROS
i have TWO text file IN C:\BANK\DATA\att.txt AND .XLS IS IN C:\BANK\IMPORTTEXT\BANK.xls

1. att.txt
data is like this==
644 Records, Jan 6 2007 1:21AM
33 Records, Jan 5 2007 11:01AM
60 Records, Dec 20 2004 9:39AM

No Data
No Data

2.btt.txt
data is like this==
644 Records, Jan 6 2007 1:21AM
No Data
60 Records, Dec 20 2004 9:39AM

No Data
60 Records, Dec 20 2004 9:39AM

iam now manullay coping the data from .txt to xls att in one column ie:A and btt to B column next att to C and btt to D and next att to E and btt to F so on...
is there any way i came automate this through
thanxs
its urgent pls

Reply With Quote
  #2  
Old January 11th, 2007, 05:54 PM
medialint's Avatar
medialint medialint is offline
Type Cast Exception
Click here for more information.
 
Join Date: Apr 2004
Location: West of Oakland, North of San Jose, South of Marin
Posts: 12,648 medialint User rank is General 27th Grade (Above 100000 Reputation Level)medialint User rank is General 27th Grade (Above 100000 Reputation Level)medialint User rank is General 27th Grade (Above 100000 Reputation Level)medialint User rank is General 27th Grade (Above 100000 Reputation Level)medialint User rank is General 27th Grade (Above 100000 Reputation Level)medialint User rank is General 27th Grade (Above 100000 Reputation Level)medialint User rank is General 27th Grade (Above 100000 Reputation Level)medialint User rank is General 27th Grade (Above 100000 Reputation Level)medialint User rank is General 27th Grade (Above 100000 Reputation Level)medialint User rank is General 27th Grade (Above 100000 Reputation Level)medialint User rank is General 27th Grade (Above 100000 Reputation Level)medialint User rank is General 27th Grade (Above 100000 Reputation Level)medialint User rank is General 27th Grade (Above 100000 Reputation Level)medialint User rank is General 27th Grade (Above 100000 Reputation Level)medialint User rank is General 27th Grade (Above 100000 Reputation Level)medialint User rank is General 27th Grade (Above 100000 Reputation Level)  Folding Points: 246054 Folding Title: Super Ultimate Folder - Level 1Folding Points: 246054 Folding Title: Super Ultimate Folder - Level 1Folding Points: 246054 Folding Title: Super Ultimate Folder - Level 1Folding Points: 246054 Folding Title: Super Ultimate Folder - Level 1Folding Points: 246054 Folding Title: Super Ultimate Folder - Level 1Folding Points: 246054 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 4 Months 3 Weeks 5 Days 5 h 19 m 28 sec
Reputation Power: 2808
You know you can open the text file in Excel, the wizard will import it for you on any delimiter ;-)

I understand you are wanting to merge them somehow, but I'm unclear on your keys or anything else. But I'm probably too late anyway ... seeing the urgency.

Have you thought about firing up Access or another database, importing them, and combining them on a query with a key? Should take about 1 minute to do all that and export it back to Excel. I need to do this regularly and it's a lot easier and more efficient than trying to write a bloated macro to do the same.
__________________
medialint.com


"Beware of the man who works hard to learn something, learns it, and finds himself no wiser than before. He is full of murderous resentment of people who are ignorant without having come by their ignorance the hard way."
- Vonnegut - Cat's Cradle, 1963

Last edited by medialint : January 11th, 2007 at 06:11 PM.

Reply With Quote
  #3  
Old January 12th, 2007, 01:37 AM
oracle_coorgi oracle_coorgi is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2006
Posts: 24 oracle_coorgi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 15 m 15 sec
Reputation Power: 0
hi
is there any way i can import data from that .txt to .xls through programming each time it has to load to diff column say A,B,C,D THEN NEXT TIME E,F,G,H NEXT I,J,K,L
AND so on
thanxs

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreOther Programming Languages > Macro to import .txt to xls urgent


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT