|
-
Mar 5th, 2008, 08:02 AM
#1
Thread Starter
New Member
How to convert txt into excel files
Hey guys
i have to create a drag an drop program that takes a text file an coverts it into an excel file...iv got the drag an drop sorted but how do i convert the txt into an excel file and distinguesh what the column headings will be etc
please im kinda new to vb, would appreciate some help
thanx
-
Mar 5th, 2008, 08:09 AM
#2
Fanatic Member
Re: How to convert txt into excel files
it al depends on the structure of you text file.
You have to give a specific structure to your text and then read accordingly. Each item read is going to be added to an excel file that you will create through your vb application. But first define the structure of your text file. and read the information inside.
-
Mar 5th, 2008, 08:15 AM
#3
Re: How to convert txt into excel files
Are you using VB.NET or VB6?
You have this thread in three sections. I've already deleted the one in C#, and either this thread or the one in Visual Basic 6 and Earlier will also be removed. I just need to know which one.
Please do not post the same question in multiple sections.
-
Mar 5th, 2008, 08:26 AM
#4
Thread Starter
New Member
Re: How to convert txt into excel files
thanx...but does any1 perhaps have a code sample for me on how to do this exactly?? everywhere else on the web i only found how to convert from excel to pdf or word to pdf etc
-
Mar 5th, 2008, 02:25 PM
#5
Frenzied Member
Re: How to convert txt into excel files
there is a tool already in excel called 'text to columns'
-
Mar 5th, 2008, 08:01 PM
#6
Lively Member
Re: How to convert txt into excel files
Hi,
Did you happen to do a search within this forum for "Text convert excel", it comes up with 140 threads........
This is one thread picked a random.
http://www.vbforums.com/showthread.p...+convert+excel
This will at least give you a starting point.
Hope this helps
Using Visual Studio .NET 2003
QUOTE: Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
-- Rick Cook, The Wizardry Compiled
-
Mar 5th, 2008, 09:14 PM
#7
Re: How to convert txt into excel files
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|