+ Reply to Thread
Results 1 to 7 of 7

Code to Change font color when land on sheet

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Code to Change font color when land on sheet

    Hello:

    Please refer to atatched file.
    I need to change the color of the font to white in cell B3:E3 when i land on Sheet1.

    I have tried using the code as shown in sheet1.
    Some code is pasted in Sheet1 and other in Module1.

    Not sure what i am doing wrong as it does not work.

    Please help to resolve and let me know if you have any questions.
    Thanks.

    Riz
    Attached Files Attached Files

  2. #2
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Code to Change font color when land on sheet

    Try this
    Please Login or Register  to view this content.
    This will work as well and is a bit cleaner and changes the font color for the range all at once.
    Please Login or Register  to view this content.
    Last edited by gmr4evr1; 12-13-2015 at 11:30 AM. Reason: Added 2nd code
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Code to Change font color when land on sheet

    Try this:
    Please Login or Register  to view this content.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Code to Change font color when land on sheet

    Hello:

    I wanted to make sure that the code gets activated when i land on that sheet.
    Thanks
    Riz

  5. #5
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Code to Change font color when land on sheet

    Hello Guys:

    I think i got it.
    will test further and let you know if further help is needed.
    Thanks a lot
    Riz

  6. #6
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Code to Change font color when land on sheet

    Change it to this but put it in the worksheet
    Please Login or Register  to view this content.
    You might have to remove the other Worksheet_Activate code though.

  7. #7
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Code to Change font color when land on sheet

    You're welcome. Thank you for the rep!

+ 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. [SOLVED] Change the font and background color of the VBA code screen
    By niko79542 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-19-2022, 09:54 PM
  2. [SOLVED] VB Code to change Font color
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-28-2014, 07:10 PM
  3. Replies: 1
    Last Post: 04-13-2013, 10:27 AM
  4. Replies: 2
    Last Post: 02-04-2013, 02:00 PM
  5. change the font color in a exel sheet
    By robin.das077 in forum Excel General
    Replies: 5
    Last Post: 11-09-2012, 12:33 AM
  6. Best way to change color of font in code?
    By bobbby1949 in forum Excel General
    Replies: 5
    Last Post: 08-27-2011, 04:50 PM
  7. [SOLVED] How do I change the font color of my sheet tabs?
    By DungeonsOfAlcatraz in forum Excel General
    Replies: 1
    Last Post: 01-03-2005, 06:06 PM

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