+ Reply to Thread
Results 1 to 3 of 3

VBA Conditional Formatting based on cell value and Text

  1. #1
    Registered User
    Join Date
    04-11-2015
    Location
    Hyderabad,India
    MS-Off Ver
    2013
    Posts
    6

    VBA Conditional Formatting based on cell value and Text

    Hi All,

    I want a VBA code which will help me to fill color index 40 in range A1:A1048576.

    This code will based on conditional formatting which is mentioned below.

    If the cell value of B2:B1048576 is equal to 2 then A2:A1048576 will be fill by color index 40 and if C2:C1048576 has text as Private equity then the range A2:A1048576 will be remain same or no color, but if the C2:C1048576 has other text then it will help to execute the first condition or it will act like a first condition only.

    For reference I have attached one file.
    Attached Files Attached Files

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: VBA Conditional Formatting based on cell value and Text

    Hi uroy67640

    You can try this...place the Code in Sheet1 Code Module

    Edit: Delete your Conditional Formatting Rules...
    Please Login or Register  to view this content.
    Last edited by jaslake; 06-08-2015 at 07:58 PM.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Registered User
    Join Date
    04-11-2015
    Location
    Hyderabad,India
    MS-Off Ver
    2013
    Posts
    6

    Re: VBA Conditional Formatting based on cell value and Text

    Thanks for your reply.
    Later I want to change the target column or cell. But above mentioned code I can not able to find any column name or cell range, so that I can apply this code in other column.

    I want to put this code in module so that I can execute it whenever I want.

+ 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. Conditional Formatting Based on Another Cell's Text
    By computergeek in forum Hello..Introduce yourself
    Replies: 2
    Last Post: 06-26-2012, 11:18 AM
  2. [SOLVED] Conditional Formatting Based on Another Cell's Text
    By computergeek in forum Excel General
    Replies: 6
    Last Post: 06-26-2012, 11:14 AM
  3. Replies: 1
    Last Post: 03-21-2012, 03:27 PM
  4. Replies: 2
    Last Post: 11-23-2010, 11:13 PM
  5. Replies: 4
    Last Post: 07-31-2009, 08:47 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