+ Reply to Thread
Results 1 to 6 of 6

Hightlight a range of row then a cell selected

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

    Post Hightlight a range of row then a cell selected

    hello evryone

    i have data in range c10:h100

    i want if select a cell e.g = c15 then

    highlight the range c10:c100 with color

    now highlight the all row only highlight defined range

    thanx
    Last edited by HaroonSid; 04-02-2014 at 08:51 AM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Hightlight a range of row then a cell selected

    Hi,

    I don't understand. Suppose you select cell C30, what do you want to happen then? What about selecting C120

    What's the full rule here? Are you saying whichever cell is selected in C10:H100, then colour the column that contains the selected cell, from row 10:100, and remove any previous colouring from another column?
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

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

    Re: Hightlight a range of row then a cell selected

    Hello Mod Richard Buttrey

    i have a code who highlight entire row when select a cell

    but i want only row's range e.g i select the cell c15 then highlight C row with range c10:c100

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

    Re: Hightlight a range of row then a cell selected

    i m using this code to highlight entire row

    Please Login or Register  to view this content.

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Hightlight a range of row then a cell selected

    So what are you saying. Are you meaning you have a solution or you're still looking for one.

    I don't see how your code fits with your original requirement. You originally said you want to highlight a range of rows, in your original that was C10:C100.

    Your code only seems to be highlighting one row.

    Upload an example workbook manually coloured as necessary and tell us which was the last cell selected.

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

    Re: Hightlight a range of row then a cell selected

    Richard Buttrey

    Sorry for wrong info
    i didn't explained well what i want

    but now i know what i want

    ya u right i haven't explained well

    if i select c15
    then highlight with color c15:h15 only

    if i select d20
    then highlight with color c20:h20 only

    if i select e25
    then highlight with color c25:h25 only

    and i found the right code

    Please Login or Register  to view this content.

    sorry to wasting ur time

    i m marking this as solved

    b t w

    thanx alot for ur valuable time
    best regards
    haroon2015

+ 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] how to make range of cell A14:q14 and cell selected in to email vba code issue
    By sspreyer in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-23-2013, 12:06 PM
  2. [SOLVED] Trying to Find selected cell content within another worksheet cell range.
    By Craigside in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-13-2012, 04:36 PM
  3. How to select the last cell in a currently selected range
    By Launchnet in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-20-2011, 05:09 PM
  4. Detection of value in selected cell range
    By vdongen in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-10-2010, 03:44 AM
  5. Replies: 11
    Last Post: 08-31-2010, 01:30 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