+ Reply to Thread
Results 1 to 5 of 5

What is the fastest way to remove "-" in multiple worksheets?

  1. #1
    Registered User
    Join Date
    09-16-2011
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003
    Posts
    52

    What is the fastest way to remove "-" in multiple worksheets?

    Hi

    I've used DataPig to pass out the data on multiple tabs and their names all end with "-". I want to make it away. Could anyone tell me what is the fastest way to remove it from the multiple worksheets's name? Thanks.
    Last edited by alexxgalaxy; 09-21-2011 at 10:20 PM.

  2. #2
    Valued Forum Contributor Miraun's Avatar
    Join Date
    04-03-2009
    Location
    New England
    MS-Off Ver
    2003, 2007, 2010, 2013
    Posts
    554

    Re: What is the fastest way to remove "-" in multiple worksheets?

    If there are no "-"s that you want anywhere in any worksheet,

    Ctrl + F
    Find and replace
    Look for -
    Replace with (null)

    By null, I mean the absence of anything in the replace with field... not the value/text Null itself.

    Find all.... Bam, a billion replacements, and no more "-"s
    Going for Guru! Click the Star to the bottom left of this post if I helped!

  3. #3
    Registered User
    Join Date
    09-16-2011
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003
    Posts
    52

    Re: What is the fastest way to remove "-" in multiple worksheets?

    Quote Originally Posted by Miraun View Post
    If there are no "-"s that you want anywhere in any worksheet,

    Find all.... Bam, a billion replacements, and no more "-"s
    I'm afraid this didn't serve the purpose. As mentioned, the names of the worksheet all end with "-" and I would like them gone. Only the "-" in the name in all worksheets, not all "-" in anywhere of every worksheets.
    Last edited by alexxgalaxy; 09-20-2011 at 06:35 PM.

  4. #4
    Forum Contributor
    Join Date
    04-01-2009
    Location
    Irvine, CA
    MS-Off Ver
    Excel 2010
    Posts
    280

    Re: What is the fastest way to remove "-" in multiple worksheets?

    Try this:

    Note: this code will replace all "-" in the sheet name...

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    09-16-2011
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003
    Posts
    52

    Re: What is the fastest way to remove "-" in multiple worksheets?

    It worked perfectly. 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