+ Reply to Thread
Results 1 to 5 of 5

Macro to change cell background from gray to white

  1. #1
    Registered User
    Join Date
    09-01-2011
    Location
    chi town
    MS-Off Ver
    Excel 2007
    Posts
    3

    Arrow Macro to change cell background from gray to white

    Hi all-

    This is a basic code but I am not sure how to go about.

    When I export a spreadsheet to excel, it opens up with a gray background (rgb(170,170,170) i think) but it is very hard to read the text on such a background.

    What is the macro code that will locate all GRAY colored cells and switch them to a WHITE background?

    Thanks in advance.

  2. #2
    Valued Forum Contributor MaczaQ's Avatar
    Join Date
    06-03-2011
    Location
    Poland
    MS-Off Ver
    Excel 2003 / XP
    Posts
    510

    Re: Macro to change cell background from gray to white

    try this
    Please Login or Register  to view this content.
    Best Regards

  3. #3
    Registered User
    Join Date
    09-01-2011
    Location
    chi town
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Macro to change cell background from gray to white

    Quote Originally Posted by maczaq View Post
    try this
    Please Login or Register  to view this content.
    Best Regards
    This converts the entire worksheet to a white background?

    I'm in need of locating ONLY gray backgrounds and changing them to white while leaving the other colors alone...TIA!
    Last edited by t0m; 09-01-2011 at 03:50 PM.

  4. #4
    Valued Forum Contributor MaczaQ's Avatar
    Join Date
    06-03-2011
    Location
    Poland
    MS-Off Ver
    Excel 2003 / XP
    Posts
    510

    Re: Macro to change cell background from gray to white

    Ok so firstly check what color index is in that "grey" cell.

    select it and use this code for checking
    Please Login or Register  to view this content.
    Then use this code
    Please Login or Register  to view this content.
    Best Regards

  5. #5
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Macro to change cell background from gray to white

    Similarly:
    Please Login or Register  to view this content.

+ 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