+ Reply to Thread
Results 1 to 5 of 5

How to color the Excel grids of multiple spreadsheets

  1. #1
    Registered User
    Join Date
    06-29-2025
    Location
    England
    MS-Off Ver
    2019
    Posts
    6

    Question How to color the Excel grids of multiple spreadsheets

    The code below was found on Google and it is used to color the grids of the spreadsheets.
    I would like to know how to apply the VBA command below to spreadsheets 1, 2, 3 and 4 of my Excel project.
    However, if anyone has a shorter version of a VBA code to color the grids and can share it, I would be very grateful.
    Thank you all!

    Please Login or Register  to view this content.

    File:

    Coloring spreadsheets and grids.xlsm
    Last edited by JoreXX; 06-29-2025 at 07:48 PM.

  2. #2
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MSO Home and Business 2024
    Posts
    7,569

    Re: How to color the Excel grids of multiple spreadsheets

    Give this a go.
    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  3. #3
    Registered User
    Join Date
    06-29-2025
    Location
    England
    MS-Off Ver
    2019
    Posts
    6

    Re: How to color the Excel grids of multiple spreadsheets

    PERFECT!
    Thank you very much

  4. #4
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MSO Home and Business 2024
    Posts
    7,569

    Re: How to color the Excel grids of multiple spreadsheets

    Glad to help.

  5. #5
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    15,072

    Re: How to color the Excel grids of multiple spreadsheets

    if anyone has a shorter version of a VBA code
    Shorter is not always better...I almost never make use of activate or select...
    Please Login or Register  to view this content.
    Good Luck...
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the [★ Add Reputation] to left of post window...
    Also....Add a comment if you like!!!!
    And remember...Mark Thread as Solved...
    Excel Forum Rocks!!!

+ 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: 1
    Last Post: 06-10-2022, 01:39 AM
  2. [SOLVED] Accessing Multiple Excel Grids With a Program or Code
    By livifivil in forum Excel General
    Replies: 4
    Last Post: 05-29-2014, 06:25 AM
  3. Problem with Grids/Matrices - Multiple Sheets - Formatting Heavy
    By morrisjr in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 12-17-2012, 12:11 AM
  4. Return multiple values across multiple spreadsheets - Excel 2010
    By oppykm2 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-07-2012, 08:52 PM
  5. Import Data from multiple spreadsheets into seperate spreadsheets worksheet
    By cablecrt in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-17-2008, 08:01 AM
  6. [SOLVED] Basic question: Grids or no grids
    By rs in forum Excel General
    Replies: 3
    Last Post: 01-12-2006, 04:35 AM

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