Well I guess I'll just keep documenting my work... lol
Public Sub Search()
Range("C15:P50") = "" 'Clear Old Search
DatatoFind = Range("D5") 'Assign Search Term
If DatatoFind = "" Then Exit Sub 'Cancel Blank Searches
Range("D11") = "Last Search: " & DatatoFind 'Show Search Term
x = 15 'Start on row 15
For Each wkst In Worksheets 'Loop Through Sheets
If wkst.Name <> "Search" And _
wkst.Name <> "Compliances" And _
wkst.Name <> "Acronyms" Then 'Skip These Sheets
With Worksheets(wkst.Name).Range("D:D") 'Set Range
Set c = .Find(DatatoFind) 'Find Data
If Not c Is Nothing Then 'If Found
firstAddress = c.Address 'Get first terms address
Do
With Worksheets("Search")
.Range("C" & x) = Worksheets(wkst.Name).Range("A1") 'Display Platform
.Range("E" & x) = c.Offset(0, -3).MergeArea(1, 1) 'Display Block
.Range("E" & x) = Replace(.Range("E" & x), Chr(10), " ")
.Range("G" & x) = c.Offset(0, -2).MergeArea(1, 1) 'Display Date
.Range("G" & x) = Replace(.Range("G" & x), Chr(10), " ")
.Range("H" & x) = c.Offset(0, -1) 'Display Name
.Range("H" & x) = Replace(.Range("H" & x), Chr(10), " ")
.Range("O" & x) = c 'Display P/N
.Range("O" & x) = Replace(.Range("O" & x), Chr(10), " ")
.Range(x & ":" & x).WrapText = False 'No word wrap
End With
Set c = .FindNext(c) 'Find next data
x = x + 1 'Next row
If x = 50 Then
Range("H50") = "Too many results, please be more specific." 'Too many results
Exit Sub
End If
Loop While Not c Is Nothing And c.Address <> firstAddress 'Loop through entire sheet
End If
End With
End If
Next wkst
If Range("C15") = "" Then Range("H15") = "No Search Results Found." 'No results
End Sub
So I still haven't been able to ignore the dashes since wildcards dont work as far as my google searches have told me.
I've subsituted line breaks for spaces, but I can't only get the first line (without wildcards again) so I've instead adjusted the column size since most of the dates are around the same pixel width.
Fixed formating with a word wrap property
Found how to get merged cell data
...I don't know if anyone will see this though =(
Bookmarks