+ Reply to Thread
Results 1 to 2 of 2

VBA Worksheet name includes "X" issue

  1. #1
    Registered User
    Join Date
    12-11-2019
    Location
    Salt Lake City, UT
    MS-Off Ver
    2016
    Posts
    1

    VBA Worksheet name includes "X" issue

    I have a macro that adds copies of worksheets.
    Please Login or Register  to view this content.
    My next macro available renames the worksheets based on cell values. The issue I'm having is that after running the first macro is that the second set of worksheets are named "Configuration (2)", etc. My macro listed below is looking for exactly "Configuration" as the worksheet name. How do I modify this to say "If the worksheet name includes the word "Configuration", rename it as cell...etc."?

    Please Login or Register  to view this content.
    Thanks
    Last edited by 6StringJazzer; 12-11-2019 at 08:36 PM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,696

    Re: VBA Worksheet name includes "X" issue

    Welcome to the Forum breezypaper!

    Moderator's note: Please take the time to review our rules. There aren't many, and they are all important. Rule #2 requires code tags. I have added them for you this time because you are a new member. --6StringJazzer

    How do I modify this to say "If the worksheet name includes the word "Configuration", rename it as cell...etc."?
    That doesn't work either, since you will have two worksheets the include the word "Configuration" and you can't name them both the same thing. Do you mean "the sheet that includes the word Configuration, but not the original Configuration sheet"?
    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ 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. Conditional Formatting "if text includes a phone number"
    By karenb2001 in forum Excel General
    Replies: 4
    Last Post: 06-21-2019, 08:49 PM
  2. Replies: 1
    Last Post: 03-27-2015, 04:01 PM
  3. Extract only text and numbers from a range that includes 0's and ""
    By emricki in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-26-2011, 04:19 PM
  4. Test for "if selection includes cells outside range"
    By phenomenix in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-01-2008, 04:47 PM
  5. [SOLVED] Conditional Format Formula "includes"
    By Cheri in forum Excel General
    Replies: 4
    Last Post: 04-13-2006, 03:53 PM
  6. How do I sum a range which includes the "#N/A" VLOOKUP return valu
    By Sailor in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-09-2005, 04:06 AM
  7. Create a "recap" worksheet that includes all info from all worksh.
    By tdglaw in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-02-2005, 01:06 PM

Tags for this Thread

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