+ Reply to Thread
Results 1 to 3 of 3

Format a named range with activecell condition.

  1. #1
    Registered User
    Join Date
    01-23-2015
    Location
    Ohio, USA
    MS-Off Ver
    2010
    Posts
    27

    Format a named range with activecell condition.

    Hello, new to forum and can't figure this out.

    I want a named range to be outlined [bold], without changing the rest of the cell format, if the active cell is in that range. But, I also need the original format (thin outline) to return once the active cell is no longer in the named range.

    EX:
    I have 10 ranges named:
    "range1" from A1:A10
    "range2" from B1:B10
    "range3" from C1:C10
    ...
    "range10" from J1:J10

    All these cells have light outline and filled light grey.
    If the active cell is A4, I want named range "range1" format to change to bold outline (not single cell) only AND when the active cell leaves this range, the original format returns. Or, If the active cell is G2, I want named range "range7" do preform this, and so on.
    [end EX]

    Can't figure this out for some reason. Would I use Conditional Formatting? VBA? Both?

  2. #2
    Valued Forum Contributor natefarm's Avatar
    Join Date
    04-22-2010
    Location
    Wichita, Kansas
    MS-Off Ver
    2016
    Posts
    1,020

    Re: Format a named range with activecell condition.

    In the VBA window, Project Explorer, double-click the worksheet that contains the ranges to open a code module for it, and paste in the following:
    Please Login or Register  to view this content.
    Acts 4:12
    Salvation is found in no one else, for there is no other name under heaven given to mankind by which we must be saved.

  3. #3
    Registered User
    Join Date
    01-23-2015
    Location
    Ohio, USA
    MS-Off Ver
    2010
    Posts
    27

    Re: Format a named range with activecell condition.

    Thank you for your time and knowledge Sir!

+ 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] Determin in which named range is the activecell
    By stojko89 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-24-2013, 08:49 AM
  2. Identify which named range(s) ActiveCell intersects
    By yay_excel in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-25-2011, 12:31 PM
  3. [SOLVED] Test if ActiveCell is within a certain named range
    By Steven in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-08-2006, 01:25 PM
  4. [SOLVED] Produce the name of the named range of activecell
    By L. Howard Kittle in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-14-2005, 08:40 PM
  5. [SOLVED] How to get name of named range where activecell is
    By Tetsuya Oguma in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-08-2005, 07:06 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