+ Reply to Thread
Results 1 to 3 of 3

Change Format of Cells, selected cells....

  1. #1
    Registered User
    Join Date
    03-28-2007
    Posts
    25

    Change Format of Cells, selected cells....

    Hello

    I would like to change a format of certain cells when a cell from that row or column is selected, can anyone help?

    i.e if any cell in row 3 is selected, then cell A3 to be bold

    If anyone can help I will be grateful, see attached sheet.

    Best wishes,

    James
    Attached Files Attached Files

  2. #2
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,641

    Smile

    Hi there,

    Sure it's possible - just see the attached.

    It works by defining a named range "DataArea" (the yellow area) & using the VBA "Worksheet_SelectionChange" routine as a trigger. If the selected cell lies within the named range the "NewFormat" routine is called & the selected title cells are reformatted, otherwise (the selected cell is outside the named range) the "OldFormat" routine is called & all title cell formats are reset.

    Please let me know if you need anything further.

    Best regards,

    Greg M
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    03-28-2007
    Posts
    25
    Absolutely perfect, many many thanks.

+ 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