Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8750273
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:50:15+00:00 2026-06-13T12:50:15+00:00

I need help creating separate text files from each row in an excel spread

  • 0

I need help creating separate text files from each row in an excel spread sheet called “worksheet”. I want the text files to be named with content of Column A, with columns B-G being the content, preferably with a double hard return between each column in the text file, so each column will have a blank line in between them.

Is this possible? How would I go about it. thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T12:50:16+00:00Added an answer on June 13, 2026 at 12:50 pm

    @nutsch’s answer is perfectly fine and should work 99.9% of the time. In the rare occasion that FSO is not available, here’s a version that doesn’t have a dependency. As is, it does require that the source worksheet doesn’t have any blank rows in the content section.

    Sub SaveRowsAsCSV()
    
    Dim wb As Excel.Workbook, wbNew As Excel.Workbook
    Dim wsSource As Excel.Worksheet, wsTemp As Excel.Worksheet
    Dim r As Long, c As Long
    
        Set wsSource = ThisWorkbook.Worksheets("worksheet")
    
        Application.DisplayAlerts = False 'will overwrite existing files without asking
    
        r = 1
        Do Until Len(Trim(wsSource.Cells(r, 1).Value)) = 0
            ThisWorkbook.Worksheets.Add ThisWorkbook.Worksheets(1)
            Set wsTemp = ThisWorkbook.Worksheets(1)
    
            For c = 2 To 7
                wsTemp.Cells((c - 1) * 2 - 1, 1).Value = wsSource.Cells(r, c).Value
            Next c
    
            wsTemp.Move
            Set wbNew = ActiveWorkbook
            Set wsTemp = wbNew.Worksheets(1)
            'wbNew.SaveAs wsSource.Cells(r, 1).Value & ".csv", xlCSV 'old way
            wbNew.SaveAs "textfile" & r & ".csv", xlCSV 'new way
            'you can try other file formats listed at http://msdn.microsoft.com/en-us/library/office/aa194915(v=office.10).aspx
            wbNew.Close
            ThisWorkbook.Activate
            r = r + 1
        Loop
    
        Application.DisplayAlerts = True
    
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need an automated process for creating docx files from xhtml source. The xhtml
I need help creating a regular expression for redirecting my old URL's to new
I need help with creating a C# method that returns the index of the
I need a little help creating a catch-all error handling page in my ICEfaces
i need some help with creating file Im trying in the last hours to
I just need help. Basically I am creating a windows appllication that sends bulk
need a small basic help, I am creating a XML file on the fly
I need help creating a regular expression. Here are two sample strings: /path/to/file.jpg /path/to/file.type.jpg
I need help creating an SQL query to count rows broken out on two
Hacking my way through a problem, and need help creating a valid MySQL DDL

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.