Results 1 to 3 of 3

Find sheet name and highlight when found..

Threaded View

mike rand Find sheet name and highlight... 06-24-2018, 08:51 PM
AlphaFrog Re: Find sheet name and... 06-24-2018, 11:21 PM
mike rand Re: Find sheet name and... 06-25-2018, 12:11 AM
  1. #1
    Registered User
    Join Date
    08-21-2015
    Location
    calgary,canada
    MS-Off Ver
    2010
    Posts
    66

    Find sheet name and highlight when found..

    Hello All,

    I have a workbook with two sheets

    sheet 1 - master log
    sheet 2 - master MTO(material take off)

    sheet 2 has a macro that adds sheet and calls it sheet1 then everytime i create a sheet it goes up eg: sheet2,sheet3,sheet4 etc etc etc

    in the master log in column E I insert the sheet number and in column H it will turn green and show the word complete.

    THIS IS THE MACRO THAT SEARCHES THE SHEETS FOR THE CORRECT NUMBER AND WHEN IT FINDS IT IT HIGHLIGHTS THE CELL IN COLUMN H GREEN AND COMPLETE.
    when i remove the sheet# from column E the green and complete goes away.

    this code works perfect(thanks to another member ( Fluff13) who was helping me out fix some problems with the original idea. and did an awesome job and nailed every problem i had thank you very much fluff13.

    Private Sub Worksheet_Change(ByVal Target As Range)
       If Target.CountLarge > 1 Then Exit Sub
       If Target.Column <> 5 Then Exit Sub
       If IsEmpty(Target) Then
          Target.Offset(, 3).Value = ""
          Target.Offset(, 3).Interior.Color = xlNone
          Exit Sub
       End If
       If Evaluate("isref('" & Target.Value & "'!A1)") Then
          Target.Offset(, 3).Interior.Color = vbGreen
          Target.Offset(, 3).Value = "Complete"
       Else
          Target.Offset(, 3).Value = ""
          Target.Offset(, 3).Interior.Color = xlNone
       End If
    End Sub

    however this code only works one way. meaning if the sheet is created and i enter the sheet name into the master list it will find it and do exactally what it was meant to do,

    problem is .....i need the code to also work the other way, meaning if the sheet name is already on my master list and then i create the new sheet ,, i need it to recogonize that now that sheet is created it can make it green and complete as well.

    right now it only does it if the sheet is completed prior to entry into master list


    attached is a copy of the workbook, password to open is grappler
    can anyone help

    thank you so much

    fluff13 if your out there thanks for all your help.

    Mike Rand
    Attached Files Attached Files
    Last edited by mike rand; 06-24-2018 at 09:12 PM. Reason: comply with rules

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 5
    Last Post: 07-14-2017, 11:22 AM
  2. [SOLVED] hyperlink to different sheet and find and highlight row VBA?
    By compgeek1979 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 07-21-2015, 03:11 PM
  3. Find a value from different sheet and copy value next to that found value
    By parkkibum in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-08-2014, 08:47 PM
  4. Find a value on a sheet and highlight the row
    By askihn in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-23-2014, 09:29 PM
  5. [SOLVED] find numbers from one sheet on new sheet and highlight
    By vitt4300 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-29-2014, 10:30 AM
  6. [SOLVED] Find cell in Range and If found then copy to next sheet
    By Sachy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-20-2013, 10:56 AM
  7. how to (better) highlight what "FIND" has found
    By TimB in forum Excel General
    Replies: 1
    Last Post: 10-27-2009, 01:07 PM

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