+ Reply to Thread
Results 1 to 2 of 2

Can you create if statements based on if cells are highlighted?

  1. #1
    Forum Contributor
    Join Date
    10-03-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    134

    Can you create if statements based on if cells are highlighted?

    Is it possibly to create a macro that if column D = VISA and column R is highlighed light red with Dark Red text and Column T is blank it will delete that row? I wasn't sure if that is possible when you use conditional formatting. The Conditional formatting finds duplicate data within a column. TIA!

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Can you create if statements based on if cells are highlighted?

    Conditional Formatting cannot delete cells, rows, or columns. It can only format them.

    You clearly use a formula to set the colours using CF. Use the same formulae, in a loop to select and delete the rows.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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. Copy and Paste based on Red Highlighted Cells
    By rlsublime in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-15-2013, 12:59 PM
  2. [SOLVED] VB Macro To Take Highlighted Cells & Create Folder name from it.
    By aelingil in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-15-2013, 01:24 PM
  3. Create graph based on highlighted cell
    By xmmx in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-22-2011, 03:07 PM
  4. Populate a 2-column list based on highlighted cells
    By Pergo in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-02-2011, 11:28 AM
  5. Calculations Based on Highlighted Cells Possible?
    By komobu in forum Excel General
    Replies: 3
    Last Post: 02-26-2011, 04:50 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