+ Reply to Thread
Results 1 to 6 of 6

Modify Highlight Row Script/Code

  1. #1
    Forum Contributor NewYears1978's Avatar
    Join Date
    03-15-2010
    Location
    Forney, TX
    MS-Off Ver
    Excel 2016
    Posts
    962

    Modify Highlight Row Script/Code

    This is surely simple - just want to change this to highlight all rows of selected cells instead of just the one row.

    Please Login or Register  to view this content.
    So currently if cursor is on sat A1 it will highlight all of A1 (to the end of data) - I want to be able to say, select A1 through A4 and then it highlight Rows 1-4 (to the end of data only)

    Thanks in advance

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

    Re: Modify Highlight Row Script/Code

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

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Modify Highlight Row Script/Code

    Maybe ...

    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,151

    Re: Modify Highlight Row Script/Code

    Quote Originally Posted by NewYears1978 View Post
    .... (xlDialogEditColor) ....
    lcolor = ActiveWorkbook.Colors(10)
    But it is not coloring cells, just a modification of the excel color palette (Tools\Options\Color\Modify).
    To modify the color of the cell(-s) all you need is select cells range and this:
    Please Login or Register  to view this content.
    It's just my opinion, I can be wrong ... (?)

  5. #5
    Forum Contributor NewYears1978's Avatar
    Join Date
    03-15-2010
    Location
    Forney, TX
    MS-Off Ver
    Excel 2016
    Posts
    962

    Re: Modify Highlight Row Script/Code

    First two options worked Thanks!

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

    Re: Modify Highlight Row Script/Code

    You're welcome! Glad we could help.
    Thanks for the rep.


    If that takes care of your original question, please mark your thread as Solved by selecting Thread Tools (just above your first post) --> Mark thread as solved.

+ 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] Modify VBA Code to Acept search & highlight Other string Format e.i 01-02,03 to 1,2,3
    By david gonzalez in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 10-02-2014, 08:54 PM
  2. [SOLVED] Need help to modify this script to summarize totals
    By s4driver in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-26-2013, 09:48 AM
  3. please help.. need to modify my script to run remotely
    By keilamym in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-27-2013, 01:51 PM
  4. Modify script to name ranges when importing tables from MS Word - for the VBA gurus
    By adrianodl in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-21-2012, 12:45 PM
  5. Delete rows without numbers (modify existing script)
    By The Phil in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-20-2011, 11:13 AM
  6. Only letting a VBA script to modify a cell
    By spoot in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-06-2009, 08:49 PM
  7. Help to modify VBA script so it displays results in other sheet ce
    By Calle in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-03-2006, 10:20 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