+ Reply to Thread
Results 1 to 2 of 2

Keep sheet names unchanged after saving them as txt files.

  1. #1
    Registered User
    Join Date
    02-27-2014
    Location
    Nederland
    MS-Off Ver
    Excel 2013
    Posts
    12

    Keep sheet names unchanged after saving them as txt files.

    I want two sheets of my Excel workbook to be saved as txt file. The name of the file is compiled of a fixed part ("TrialList" or "BlockList") and two values from another sheet (subject and session number):

    Please Login or Register  to view this content.
    Now, saving the text files with the desired file names works perfectly. However, Excel decides to change the names of the sheets that have been saved as text files accordingly. This is something I want to prevent from happening, since a second loop of actions will end because of the unexpected sheet names... How do I work around this autonomous behaviour of Excel?

  2. #2
    Valued Forum Contributor adyteo's Avatar
    Join Date
    01-10-2013
    Location
    Calgary
    MS-Off Ver
    Excel 2010
    Posts
    540

    Re: Keep sheet names unchanged after saving them as txt files.

    Excel automatically does that. You need to capture the original names of the sheets and after the save, rename the sheets with their original name.
    Click on the star if you think I helped you

+ 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. Search Sheet Names Across Excel Files
    By vivanta in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-21-2013, 09:56 AM
  2. [SOLVED] How do I import Names of Windows files into an Excel Spread sheet
    By Arvi Laanemets in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-06-2005, 07:05 AM
  3. How do I import Names of Windows files into an Excel Spread sheet
    By solrac1956 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  4. [SOLVED] How do I import Names of Windows files into an Excel Spread sheet
    By solrac1956 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM
  5. How do I import Names of Windows files into an Excel Spread sheet
    By solrac1956 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-28-2005, 02:05 PM

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