+ Reply to Thread
Results 1 to 4 of 4

Trying to Export Cell Range to TXT with a Macro

  1. #1
    Registered User
    Join Date
    02-08-2008
    Posts
    21

    Trying to Export Cell Range to TXT with a Macro

    My Cell Range is ("J3:L28") and I want it to export to a txt file with the File name from Cell (M2) to C:\Test\. Can someone Assist me with a macro so I can make a push button for this? Thanks In Advance!

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Trying to Export Cell Range to TXT with a Macro

    Hi HH,

    I'd be looking at "Print To File" and make the file a .txt file. In the print dialogs there is a print selection only.
    Record a macro that does these keystroke operations and see if that solves your problem.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,176

    Re: Trying to Export Cell Range to TXT with a Macro

    Please Login or Register  to view this content.

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Trying to Export Cell Range to TXT with a Macro

    Hello hammerhead,

    Here is another macro to create the file from the range.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

+ 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. [SOLVED] Export cell range based on drop down menu
    By Aris in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-04-2014, 07:49 AM
  2. [SOLVED] Export Cell Values in a range to a new workbook.
    By Aris in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-01-2014, 05:59 AM
  3. Macro to export specific range of data to text file for each worksheet
    By sonofamonkey10 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-30-2013, 05:43 PM
  4. [SOLVED] Macro to export range of cells to notepad file.
    By MrIdontknowexcel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-28-2012, 03:17 PM
  5. macro to export a range to a text file?
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-21-2006, 09:30 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