+ Reply to Thread
Results 1 to 4 of 4

Change only active cell's backgroun colour

  1. #1
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Change only active cell's backgroun colour

    hi,
    i am using below code to highlight a range of a row of a active cell, i just want to modify.
    Please Login or Register  to view this content.
    above code works only range with a10:s299. I want to apply above code to whole sheet,
    above code changes color of a entire row from A to T, and i just want to apply active cell,

    if my active cell is range a5 then a5's background should be yellow (color index = 6) and if i activate a7 then remove a5 back ground and set it to a7

    thank you
    Use Code-Tags for showing your code :
    Please mark your question Solved if there has been offered a solution that works fine for you
    If You like solutions provided by anyone, feel free to add reputation using STAR *

  2. #2
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    Re: Change only active cell's backgroun colour

    Try this

    Please Login or Register  to view this content.
    'code courtesy to cpearson.com
    Teach me Excel VBA

  3. #3
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Change only active cell's backgroun colour

    Based on your description, I guess you only need this...

    Please Login or Register  to view this content.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  4. #4
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Change only active cell's backgroun colour

    maybe try this add-in by cpearson

    http://www.cpearson.com/Excel/RowLiner.htm
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

+ 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. How to change cell colour, if the colour is based on value from formula?
    By darah237 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-19-2016, 11:40 AM
  2. Replies: 6
    Last Post: 04-11-2016, 09:48 AM
  3. [SOLVED] VBA to Sort Rows Based on Cell's Backgroun Color/Colour
    By Taisir in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-06-2015, 07:09 AM
  4. Replies: 2
    Last Post: 06-07-2011, 07:00 AM
  5. Colour change column chart based on cell colour
    By Alice21 in forum Excel General
    Replies: 11
    Last Post: 04-05-2011, 10:10 AM
  6. change a cell background colour to my own RGB colour requirements
    By Stephen Doughty in forum Excel General
    Replies: 4
    Last Post: 06-16-2006, 08:15 AM
  7. [SOLVED] On a Mac how do I change the border colour of the active cell?
    By Lino in forum Excel General
    Replies: 2
    Last Post: 05-23-2006, 08:40 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