Results 1 to 2 of 2

VBA Worksheet name includes "X" issue

Threaded View

breezypaper VBA Worksheet name includes... 12-11-2019, 05:13 PM
6StringJazzer Re: VBA Worksheet name... 12-11-2019, 08:35 PM
  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.
    Sub AddAnotherSetofTabs()
    '
    ' AddAnotherSetofTabs Macro
    '
    
    '
        Sheets("Configuration").Select
        Sheets("Configuration").Copy Before:=Sheets(3)
        Sheets("Supporting Applications").Select
        Sheets("Supporting Applications").Copy Before:=Sheets(4)
    End Sub
    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."?

    Sub myTabName()
        Sheets("Configuration").Name = ActiveSheet.Range("P2")
        Sheets("Supporting Applications").Name = ActiveSheet.Range("P3")
    End Sub
    Thanks
    Last edited by 6StringJazzer; 12-11-2019 at 08:36 PM.

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. [SOLVED] 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