+ Reply to Thread
Results 1 to 7 of 7

Highlight selected within a range

  1. #1
    Forum Contributor
    Join Date
    03-05-2009
    Location
    usa
    MS-Off Ver
    Excel 2016 32Bit
    Posts
    1,173

    Highlight selected within a range

    Can I highlight a selected cell in a range called Sixty,maybe color it yellow
    Last edited by zplugger; 02-06-2016 at 02:48 PM.

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

    Re: Highlight selected within a range

    Try
    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...

  3. #3
    Forum Contributor
    Join Date
    03-05-2009
    Location
    usa
    MS-Off Ver
    Excel 2016 32Bit
    Posts
    1,173

    Re: Highlight selected within a range

    Thanks Olly Is there a way so this only happens in a range called sixty?

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

    Re: Highlight selected within a range

    Sure.
    This code will highlight a selected cell within range "Sixty" - when a selection is made outside that range, the previous selection remains highlighted:
    Please Login or Register  to view this content.
    And this version will highlight a selected cell within range "Sixty" - when a selection is made outside that range, the previous highlight is cleared:
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    03-05-2009
    Location
    usa
    MS-Off Ver
    Excel 2016 32Bit
    Posts
    1,173

    Re: Highlight selected within a range

    Thanks Olly You just saved my day,nice work on your coding.

  6. #6
    Forum Contributor
    Join Date
    03-05-2009
    Location
    usa
    MS-Off Ver
    Excel 2016 32Bit
    Posts
    1,173

    Re: Highlight selected within a range

    Ran into a problem if a cell is merged,would there be a work around for this . Say cell B2 &B3 get merged. It would still highlight the merged cells?

  7. #7
    Forum Contributor
    Join Date
    03-05-2009
    Location
    usa
    MS-Off Ver
    Excel 2016 32Bit
    Posts
    1,173

    Re: Highlight selected within a range

    Make this work on Merged Cell too?
    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)

Similar Threads

  1. Highlight the range of selected cell
    By Motilulla in forum Excel General
    Replies: 6
    Last Post: 07-07-2013, 01:51 AM
  2. Highlight blank cell in a selected range of a sheet
    By ROHAN999 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-20-2013, 08:50 AM
  3. [SOLVED] How to highlight an active row within a selected range in excel
    By jjin in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-05-2013, 08:52 PM
  4. Defining a range to highlight column and row in line with selected cell
    By ACM2 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-19-2012, 11:13 PM
  5. Highlight a selected row
    By Barking_Mad in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-10-2010, 11:41 AM
  6. [SOLVED] Trying to highlight (bold,red) selected text within range
    By tmayhall in forum Excel General
    Replies: 0
    Last Post: 08-21-2006, 05:10 PM
  7. Highlight Row when selected
    By cassy01 in forum Excel General
    Replies: 2
    Last Post: 09-06-2005, 10:05 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