+ Reply to Thread
Results 1 to 3 of 3

Run Macro if cell contains "complete"

  1. #1
    Forum Contributor
    Join Date
    02-29-2012
    Location
    UK, Newcastle
    MS-Off Ver
    Office 365
    Posts
    122

    Run Macro if cell contains "complete"

    Hi All, I had a sheet that would change all of the text colour to a grey colour when a particular cell contained "complete".
    I believe a macro was triggered, I see two macros in my old book but unsure which one i used or how I triggered it.
    Would be very grateful if someone could solve this for me.

    Macros listed here.

    Sub GreyOut()
    '
    ' GreyOut Macro
    ' Macro recorded 08/02/2007 by Russ Burke
    '

    '
    Range("A3:O3").Select
    Selection.Font.ColorIndex = 15
    End Sub
    Sub GreyOut2()
    '
    ' GreyOut2 Macro
    ' Macro recorded 08/02/2007 by Russ Burke
    '

    '
    Selection.Font.ColorIndex = 15
    ActiveCell.Offset(0, 1).Range("A1").Activate
    End Sub

    many thanks
    Last edited by maax555; 02-04-2025 at 01:06 PM. Reason: Solved

  2. #2
    Forum Contributor
    Join Date
    02-29-2012
    Location
    UK, Newcastle
    MS-Off Ver
    Office 365
    Posts
    122

    Re: Run Macro if cell contains "complete"

    I found solution. No need for macro, conditional formatting has worked fine for me.

  3. #3
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MSO Home and Business 2024
    Posts
    7,265

    Re: Run Macro if cell contains "complete"

    In that case please select Thread Tools from the menu link above and mark this thread as SOLVED.
    .
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

+ 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. If B6 = "NO" input "COMPLETE REASON" in B7, then if C7 has text make B7 blank
    By AdrianaBotha2 in forum Excel Formulas & Functions
    Replies: 21
    Last Post: 08-15-2023, 01:15 AM
  2. Replies: 1
    Last Post: 05-11-2023, 12:00 AM
  3. Replies: 3
    Last Post: 10-22-2019, 08:34 AM
  4. Replies: 6
    Last Post: 07-16-2017, 09:06 AM
  5. [SOLVED] Code that copies row of data to another sheet based on text "Complete"/"Delete"
    By Dremzy in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 04-20-2014, 05:51 PM
  6. Replies: 2
    Last Post: 04-20-2014, 11:18 AM
  7. [SOLVED] Delete Rows if a cell does not equal "Finished" or "Complete"
    By Justair07 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 09-27-2013, 12:40 PM

Tags for this Thread

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