+ Reply to Thread
Results 1 to 5 of 5

Help in writing excel numbers in .txt

  1. #1
    Forum Contributor
    Join Date
    05-09-2013
    Location
    london
    MS-Off Ver
    Excel 2016
    Posts
    107

    Help in writing excel numbers in .txt

    Dear friends,

    I have one Excel spreadsheet where I have this kind of data:

    Please Login or Register  to view this content.
    And this until 31-12-2012

    What I would like, is a macro that can read all this data and then write it in a .txt file with exactly this format:

    Please Login or Register  to view this content.
    As you can see it's year, month, day and then the value.

    Please note that between the date: (year, month, day) there are 2 spaces. And then from the day to the value only one space is used.

    Anyone can give me a help?

    Thank you

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Help in writing excel numbers in .txt

    attach please a sample file
    If solved remember to mark Thread as solved

  3. #3
    Forum Contributor
    Join Date
    05-09-2013
    Location
    london
    MS-Off Ver
    Excel 2016
    Posts
    107

    Re: Help in writing excel numbers in .txt

    help.xlsx help_output.txt

    Dear patel45,

    Thank you for your quick reply.

    Here I attach a .xslm file with all the data, and a .txt file which I want that the VBA code could write.

    Thank you

  4. #4
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Help in writing excel numbers in .txt

    Hi, ropbasuel,

    maybe like this
    Please Login or Register  to view this content.
    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  5. #5
    Forum Contributor
    Join Date
    05-09-2013
    Location
    london
    MS-Off Ver
    Excel 2016
    Posts
    107

    Re: Help in writing excel numbers in .txt

    Dear Holger,

    Thank you so much for the help! It works like a charm!

    Thank you!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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