Results 1 to 7 of 7

Thread: How to convert txt into excel files

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2008
    Posts
    2

    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

  2. #2
    Fanatic Member
    Join Date
    Feb 2007
    Location
    Eindhoven
    Posts
    828

    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.

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    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.

  4. #4

    Thread Starter
    New Member
    Join Date
    Mar 2008
    Posts
    2

    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

  5. #5
    Frenzied Member
    Join Date
    Sep 2006
    Location
    UK / East Sussex
    Posts
    1,054

    Re: How to convert txt into excel files

    there is a tool already in excel called 'text to columns'
    M.Carpenter

    Server Admin for Wurm Online
    Wurm Online - A very unique and original MMO from Code Club AB
    https://www.youtube.com/watch?v=YQlYar2uHWAWurm Trailor


  6. #6
    Lively Member SonicBoomAu's Avatar
    Join Date
    Aug 2004
    Posts
    78

    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

  7. #7
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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
  •  



Click Here to Expand Forum to Full Width