+ Reply to Thread
Results 1 to 6 of 6

Export a particular sheet as txt file to the current directory

  1. #1
    Forum Contributor
    Join Date
    09-16-2014
    Location
    Hyderabad
    MS-Off Ver
    MS Office 2021
    Posts
    347

    Export a particular sheet as txt file to the current directory

    Hi all,


    Can I export a particular sheet say "LOG" as txt file to the current directory with the same name as sheet i.,e "LOG"

    It should overwrite automatically and no prompts.

    Can I assign a short-cut key to this?

    Thanks
    Last edited by Ravana; 12-10-2015 at 07:46 AM.

  2. #2
    Forum Contributor
    Join Date
    09-16-2014
    Location
    Hyderabad
    MS-Off Ver
    MS Office 2021
    Posts
    347

    Re: Export a particular sheet as txt file to the current directory

    Bump, anyone

  3. #3
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,700

    Re: Export a particular sheet as txt file to the current directory

    Try this.
    Note: It will close the workbook also.
    Please Login or Register  to view this content.
    Last edited by jolivanes; 12-11-2015 at 02:08 AM.

  4. #4
    Forum Contributor
    Join Date
    09-16-2014
    Location
    Hyderabad
    MS-Off Ver
    MS Office 2021
    Posts
    347

    Re: Export a particular sheet as txt file to the current directory

    @jolivanes

    It is asking me to save the workbook again to xls when I tried your code which is not I am looking at.

    All I want is to save a sheet named "LOG" in the workbook as txt file in the current directory with same name as LOG.txt

    If there is any existing file with name LOG, it should replace it.
    Attached Files Attached Files
    Last edited by Ravana; 12-11-2015 at 03:44 AM.

  5. #5
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,700

    Re: Export a particular sheet as txt file to the current directory

    This Maybe?
    Please Login or Register  to view this content.
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    09-16-2014
    Location
    Hyderabad
    MS-Off Ver
    MS Office 2021
    Posts
    347

    Re: Export a particular sheet as txt file to the current directory

    @jolivanes

    That seems good. Thanks a lot mate.

+ 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. Replies: 0
    Last Post: 05-17-2014, 04:21 PM
  2. Replies: 2
    Last Post: 01-26-2012, 12:52 PM
  3. Saving file in current directory after accessing file in another directory
    By vuxsa in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-28-2011, 11:37 AM
  4. Displaying the current opened file's directory path?
    By doubleEbuck in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-25-2008, 06:18 PM
  5. Replies: 1
    Last Post: 08-07-2008, 02:11 PM
  6. Importing text file from current workbook directory
    By hluk in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-11-2008, 06:38 AM
  7. [SOLVED] Saving a File to the Current Directory Using a Macro
    By jim evans in forum Excel General
    Replies: 3
    Last Post: 06-18-2006, 10:20 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