+ Reply to Thread
Results 1 to 9 of 9

Exporting Records from Notepad

  1. #1
    Forum Contributor
    Join Date
    01-24-2013
    Location
    India
    MS-Off Ver
    Excel 2019
    Posts
    100

    Exporting Records from Notepad

    Hi Friends,

    Is it possible to export the data's from Notepad to excel using Macros.

    When the Macro is executed i want to browse through the drives and select the desired notepad and the records needs to exported to excel.

    Regards
    Shyam

  2. #2
    Valued Forum Contributor
    Join Date
    03-22-2013
    Location
    Australia,NSW, Wirrimbi
    MS-Off Ver
    Excel 2013
    Posts
    1,057

    Re: Exporting Records from Notepad

    Hi..

    Yes it is.. attach one of your txt files so anyone wanting to help you can test using the correct data..

  3. #3
    Forum Contributor
    Join Date
    01-24-2013
    Location
    India
    MS-Off Ver
    Excel 2019
    Posts
    100

    Re: Exporting Records from Notepad

    Sorry Chap. Currently i don't have the same notepad format.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,440

    Re: Exporting Records from Notepad

    i don't have the same notepad format.

    What does that mean? A Notepad file is simply a Text file. It will normally have a .txt file extension. There are "special" text files which are classed as comma separated variable files, with a .csv file extension. These can be opened in Excel and the dat aligned to columns.

    As has been suggested, upload one of your files so we can see what needs doing.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  5. #5
    Forum Contributor
    Join Date
    01-24-2013
    Location
    India
    MS-Off Ver
    Excel 2019
    Posts
    100

    Re: Exporting Records from Notepad

    Attached sample notepad
    Attached Files Attached Files

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Exporting Records from Notepad

    From Excel, Data > From Text, navigate to the file, tick Fixed width, Next, set the field breaks where you like, Next, select Text for the first two fields to preserve the leading zeros, Finish
    Entia non sunt multiplicanda sine necessitate

  7. #7
    Forum Contributor
    Join Date
    01-24-2013
    Location
    India
    MS-Off Ver
    Excel 2019
    Posts
    100

    Re: Exporting Records from Notepad

    Am already using text to columns method. But am looking to automate this one.

  8. #8
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Exporting Records from Notepad

    Have you tried recording a macro?

  9. #9
    Forum Contributor
    Join Date
    01-24-2013
    Location
    India
    MS-Off Ver
    Excel 2019
    Posts
    100

    Re: Exporting Records from Notepad

    I want the user to browse through the drives and select the file

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. VBA Code for Exporting Selected Columns in Excel to Notepad
    By xace in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-09-2014, 03:01 AM
  2. Exporting from excel 2010 to notepad or into a .hol file
    By ammacdo in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-02-2012, 09:31 PM
  3. Exporting spreadsheet to notepad without space
    By amb1s1 in forum Excel General
    Replies: 4
    Last Post: 09-10-2011, 10:52 AM
  4. Automatic exporting in notepad text form from Excel Table
    By Horia in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-27-2010, 09:39 AM
  5. Exporting Excel Data into Notepad
    By devender_g in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-01-2005, 06:55 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1