+ Reply to Thread
Results 1 to 3 of 3

Create sheets with specific color for TAB

  1. #1
    Registered User
    Join Date
    08-11-2010
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    58

    Create sheets with specific color for TAB

    Hi All,

    Kindly request you to have a look at the below and please advise.


    We have A,B,C,DE scenarios and we need to create 6 sheets for all the scenarios and a "Result" sheet in the spreadsheet:

    ATC1.....ATC6 - All A in Black colour
    BTC1.....BTC6 - All B in Yellow colour
    CTC1.....CTC6 - All C some Light Blue
    DETC1.......DETC6 - All D some Light Grey
    Results - This will be Green color

    I did a manual work around by recording a macro:
    Create Sheet
    Rename as ATC1
    Coloured sheet as mentioned above.
    Copy paste for each sheet name which will be around 25 times of the below code snippets but ofcourse change colour and change sheet names.

    Please Login or Register  to view this content.
    I am managing by doing the above, if there is an easy workaround, please advise.

    Best Regards,
    Sri
    Last edited by sreeks; 03-28-2014 at 02:12 PM.

  2. #2
    Registered User
    Join Date
    08-11-2010
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    58

    Re: Create sheets with specific color for TAB

    Hi All,

    Managed to do it myself...

    Sheets.Add After:=ActiveSheet
    Sheets.Add After:=ActiveSheet
    Sheets.Add After:=ActiveSheet
    Sheets.Add After:=ActiveSheet
    Sheets(Array("Sheet13", "Sheet14", "Sheet15", "Sheet16")).Select
    Sheets("Sheet16").Activate
    With ActiveWorkbook.Sheets("Sheet16").Tab
    .Color = 255
    .TintAndShade = 0
    End With
    With ActiveWorkbook.Sheets("Sheet15").Tab
    .Color = 255
    .TintAndShade = 0
    End With
    With ActiveWorkbook.Sheets("Sheet14").Tab
    .Color = 255
    .TintAndShade = 0
    End With
    With ActiveWorkbook.Sheets("Sheet13").Tab
    .Color = 255
    .TintAndShade = 0
    End With


    Best Regards,
    Sri

  3. #3
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Create sheets with specific color for TAB

    Or a slightly neater route:
    Please Login or Register  to view this content.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

+ 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: 17
    Last Post: 02-01-2013, 12:20 PM
  2. Replies: 0
    Last Post: 11-29-2012, 10:21 AM
  3. [SOLVED] Transfer Rows with specific color from Multiple Sheets onto one sheet
    By bukejr in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-19-2012, 09:49 AM
  4. Create New Sheets & Copy Specific Data To Each
    By bdb1974 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-11-2010, 05:45 PM
  5. Create a public constant that defines a specific RGB color
    By batman in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-18-2007, 11:39 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