+ Reply to Thread
Results 1 to 9 of 9

Highlighting Rows/Columns

  1. #1
    Forum Contributor
    Join Date
    10-17-2018
    Location
    Knoxville, TN
    MS-Off Ver
    Office 365
    Posts
    214

    Highlighting Rows/Columns

    I haven't requested any help on my Sudoku game because it's finished and ready, but I like to play those on my cell phone and it has a feature I would like to add so attached is my request and I'm sure it will be easy for someone to solve.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow Re: Highlighting Rows/Columns


    As your attachment can very not handle any VBA procedure …

  3. #3
    Forum Contributor
    Join Date
    10-17-2018
    Location
    Knoxville, TN
    MS-Off Ver
    Office 365
    Posts
    214

    Re: Highlighting Rows/Columns

    Marc L , please explain what your mean.

  4. #4
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow Re: Highlighting Rows/Columns


    The workbook file format …

  5. #5
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Cool Try this !


    Anyway according to your attachment a beginner level starter with a worksheet event VBA procedure
    so to paste only to the Sheet1 worksheet module :

    PHP Code: 
    Private Sub Worksheet_SelectionChange(ByVal Target As Range)
        
    With [B2:S10]
           .
    Interior.ColorIndex xlNone
            
    If Intersect(Target(1), .CellsIs Nothing Or (Target(1).Column And 1) = 0 Then Exit Sub
        Select 
    Case Target(1).Column
               
    Case Is 8:     2
               
    Case Is 14:    8
               
    Case Else:       14
        End Select
        Select 
    Case Target(1).Row
               
    Case Is 5:     2
               
    Case Is 8:     5
               
    Case Else:       8
        End Select
            Union
    (.Columns(Target(1).Column 1), .Rows(Target(1).Row 1), Cells(RC).Resize(36)).Interior.ColorIndex 20
        End With
    End Sub 
    ► Do you like it ? ► So thanks to click on bottom left star icon « Add Reputation » !

  6. #6
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Lightbulb Or this ...


    According to your attachment an Excel basics variation to paste only to the Sheet1 worksheet module :
    Please Login or Register  to view this content.
    ► Do you like it ? ► So thanks to click on bottom left star icon « Add Reputation » !

  7. #7
    Forum Contributor
    Join Date
    10-17-2018
    Location
    Knoxville, TN
    MS-Off Ver
    Office 365
    Posts
    214

    Re: Highlighting Rows/Columns

    Used the first example and it works, Thanks,

  8. #8
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Re: Highlighting Rows/Columns


    Thanks for the rep' !

    And both work as expected …

  9. #9
    Forum Contributor
    Join Date
    10-17-2018
    Location
    Knoxville, TN
    MS-Off Ver
    Office 365
    Posts
    214

    Re: Highlighting Rows/Columns

    Yes, both work

+ 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] Highlighting Rows/Columns
    By jevicha2 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-26-2022, 05:36 PM
  2. Highlighting Rows/Columns
    By jevicha2 in forum Office 365
    Replies: 0
    Last Post: 04-26-2022, 10:11 AM
  3. [SOLVED] highlighting repeated for specific values on multiple columns not rows
    By ABDELFATTA in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 10-28-2020, 12:56 AM
  4. Macro for Highlighting certain rows/columns
    By offlineafk in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-01-2019, 05:10 PM
  5. Replies: 4
    Last Post: 06-22-2015, 03:49 PM
  6. [SOLVED] Highlighting multiple rows through a worksheet depending a cell value in the rows
    By loked in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-19-2014, 01:31 AM
  7. Highlighting value if appears in 3 adjacent columns (across different rows)
    By Magoose in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-20-2013, 11:49 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