+ Reply to Thread
Results 1 to 3 of 3

Trying to change font in a frozen cell based on the address of the active cell. Possible?

  1. #1
    Registered User
    Join Date
    05-24-2013
    Location
    Las Vegas
    MS-Off Ver
    Excel 2007
    Posts
    26

    Trying to change font in a frozen cell based on the address of the active cell. Possible?

    Hello all,

    First let me thank all of you for being here and for your willingness to help out. The more comfortable I get using VBA, the more I find out I want to do with it. I am really starting to believe that Excel IS the Photoshop for data!

    I have a workbook that extends to many many columns. In column A,B and C, I have employee information and those columns have been frozen to always be visible while working on the sheet. My question is, would it be possible to use VBA to enlarge the text or change the font of an employee's name (column B for example) when the active cell is on that employee's row? If the active cell is AA45, I would like to change the font of B45. If I arrow down to AA46, B45 goes back to default and B46 gets changed.

    Up to this point, all of my VBA has been based on a value or a change in a selected cell. I was wondering if I could have these changes made without changing or adding a value to a cell.

    I thank you all for pointing me in the right direction.

    Scott
    Last edited by sdavison; 10-11-2013 at 01:23 AM.

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Trying to change font in a frozen cell based on the address of the active cell. Possi

    I was able to come up with a variation. I don't really know a thing about VB, but I'm decent at tearing stuff apart and making it work.

    I took apart some code that highlights rows and columns based on the activecell, and clears the color fill when the activecell is changed.

    In my code, I took out the column part, and just changed the FontStyle property to bold italics and reset the font type when the activecell is changed.

    Play around with this, maybe it could take you somewhere.

    (This code goes on the worksheet it applies to.)

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    05-24-2013
    Location
    Las Vegas
    MS-Off Ver
    Excel 2007
    Posts
    26

    Re: Trying to change font in a frozen cell based on the address of the active cell. Possi

    Daffodil11,

    Thank you for the reply. I was able to look at your solution, and it appears that with just a little bit of modification it is exactly what I was looking for. Excelforum members are the best and I look forward to when I am comfortable enough to begin answering more questions than I am asking.

    Thank you again for taking the time to put be on the correct path.

    Scott

+ 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. Click an active cell to change filled and font color
    By Rocky2013 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-14-2013, 11:03 PM
  2. Change cell value based on active cell
    By kmar in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-29-2013, 03:11 AM
  3. Replies: 3
    Last Post: 04-30-2012, 04:43 PM
  4. Change cell values based on Active Cell Address in Excel 2007 with no VBA
    By bdmistri in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-07-2009, 02:01 PM
  5. [SOLVED] Change Font Color in cell Based on another cell value
    By John in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-18-2005, 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