+ Reply to Thread
Results 1 to 4 of 4

Highlight Active Row macro, and Bold the Active Cell

  1. #1
    Registered User
    Join Date
    07-12-2010
    Location
    Midwest, US
    MS-Off Ver
    Excel 2007
    Posts
    13

    Highlight Active Row macro, and Bold the Active Cell

    Hi Programmers,
    I'd like to not only highlight the active row, but also highlight the active cell with bold formatting. I'm using the code from this thread: Highlight Active Row macro error; http://www.excelforum.com/excel-prog...ro-error.html; but don't know how to adapt it.
    Also, if cells happen to already be highlighted or formatted bold, the code should not interfere with this prior formatting.
    Is this possible?
    Lastly, the worksheet should reset to the prior formatting.

    Thanks a bunch.

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: Highlight Active Row macro, and Bold the Active Cell

    You could try with this code:
    Please Login or Register  to view this content.
    Regards,
    Antonio

  3. #3
    Registered User
    Join Date
    07-12-2010
    Location
    Midwest, US
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Highlight Active Row macro, and Bold the Active Cell

    Hi Antonio,

    Thanks, that works and looks good.
    I'm still having difficulty though resetting it prior to close. For instance, the workbook is saving the yellow highlighting and bold formatting--when the workbook opens again, the row that was last selected has the yellow and bold formatting. How would be the most efficient way of turning this off prior to a save?

    Thanks.

  4. #4
    Valued Forum Contributor rollis13's Avatar
    Join Date
    01-26-2012
    Location
    Cordenons
    MS-Off Ver
    Excel 2016 32bit - Win 11
    Posts
    916

    Re: Highlight Active Row macro, and Bold the Active Cell

    Have a try with this attached file (not much testing done).
    Added BeforeClose, BeforeSave and a clearing macro.


    PS. posted in the wrong thread, shoud have been here: http://www.excelforum.com/excel-prog...html?p=3122457
    Attached Files Attached Files
    Last edited by rollis13; 02-19-2013 at 06:57 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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