+ Reply to Thread
Results 1 to 3 of 3

Current cell row column highlight

  1. #1
    Forum Contributor
    Join Date
    07-27-2017
    Location
    Dhaka
    MS-Off Ver
    MS Excel 2019/ 64 bit
    Posts
    159

    Current cell row column highlight

    Hi Experts,
    i am using below code for highlighting current selected cell row & column:

    Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
    Dim strRange As String
    strRange = Target.Cells.Address & "," & _
    Target.Cells.EntireColumn.Address & "," & _
    Target.Cells.EntireRow.Address
    Range(strRange).Select
    End Sub

    But it has a problem i cant design any cell or row or column using fill color. when i make a fill color of any cell/row/column its automatically remove. But i wants to keep it. Please help me & also i attached my file.
    Attached Files Attached Files

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,447

    Re: Current cell row column highlight

    Your post does not comply with Rule 2 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html

  3. #3
    Forum Contributor
    Join Date
    05-12-2018
    Location
    Netherlands
    MS-Off Ver
    2016
    Posts
    266

    Re: Current cell row column highlight

    take a look in the ThisWorkbook-module. There is a piece of code that clears the colorfill.

+ 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. Replies: 3
    Last Post: 09-16-2017, 01:03 PM
  2. Highlight current row and column (ribbon) ????
    By Rmag in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-06-2015, 10:43 AM
  3. Excel 2007 : Highlight current week column
    By pm1927 in forum Excel General
    Replies: 2
    Last Post: 01-25-2011, 08:51 PM
  4. Highlight current week column
    By podge in forum Excel General
    Replies: 2
    Last Post: 04-06-2010, 10:29 AM
  5. how do I highlight the current row and column
    By Ssalzman in forum Excel General
    Replies: 6
    Last Post: 05-14-2009, 07:10 PM
  6. highlight current row/column
    By RyanV in forum Excel General
    Replies: 1
    Last Post: 08-11-2006, 09:00 AM
  7. [SOLVED] Highlight column heading of current cell
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-04-2006, 12: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