Results 1 to 5 of 5

Alter Macro from "Find cell location if blank" T o "Find cell location if "MyWord"

Threaded View

  1. #1
    Forum Contributor
    Join Date
    07-11-2010
    Location
    Minneapolis, USA
    MS-Off Ver
    Excel 2016
    Posts
    308

    Alter Macro from "Find cell location if blank" T o "Find cell location if "MyWord"

    Hello I need to find the cell locations for cells whose value is "MyWord" in the active worksheet and have it show in a MsgBox, the code below does this for blank cells, I do not know how to alter it.

    Thanks


    Dim blanks As Range
    
    With Worksheets("Comments")
      On Error Resume Next
      Set blanks = Application.Intersect(.Range("A2", .UsedRange.SpecialCells(xlCellTypeLastCell)), .Range("A:E")).SpecialCells(xlCellTypeBlanks)
      On Error GoTo 0
    End With
    
    If blanks Is Nothing Then
      MsgBox "There Are (0) Blank Cells For ""Comments"" Sheet"
    Else
    
      blanks.Select
    
      MsgBox "For Comments Sheet There are (" & blanks.Cells.Count & ") Blank Cells:" & vbNewLine & vbNewLine & _
        blanks.Address
    
    End If
    Last edited by capson; 03-05-2014 at 04:08 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] I need to find: Value X, Location to Examine, Value X, "FALSE"
    By CatSqueezer in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-22-2013, 09:54 AM
  2. Replies: 3
    Last Post: 02-16-2011, 02:55 PM
  3. Replies: 5
    Last Post: 06-26-2006, 09:23 PM
  4. [SOLVED] Location of "Find Results" on Page.
    By E. J. Murphy in forum Excel General
    Replies: 5
    Last Post: 11-07-2005, 03:55 PM
  5. how do I create a macro to "Go To" a location specified in a cell?
    By kim.in.denver in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-09-2005, 05:05 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