To the best of my knowledge, the Find Method will not search in hidden
cells. See if this macro does what you want instead...
Sub UnhideSpecifiedRows()
Dim X As Long, LR As Long, Category As String
Category = InputBox("Enter category here", "Category selection")
If Len(Category) = 0 Then Exit Sub
LR = ActiveSheet.Cells(Rows.Count, "H").End(xlUp).Row
For X = 1 To LR
If Rows(X).Hidden Then
If StrComp(Cells(X, "H").Value, Category, vbTextCompare) = 0 Then
Rows(X).Hidden = False
End If
End If
Next
End Sub
--
Rick (MVP - Excel)
"paularo" <(E-Mail Removed)> wrote in message
news

E67884E-AF73-4051-BD54-(E-Mail Removed)...
> Here's my "body of work" on this one. I just want it to keep going until
> it
> no longer finds whatever has been assigned to the string "category". From
> what I've seen so far, I may be going in the wrong direction here, but
> simplicity is preferred whenever possible since most of the folks I work
> with
> will have no idea!
>
> Any help to keep it simple would be appreciated!
>
> Paula
>
> ------------
> Sub categoryselect()
> category = InputBox("enter category here", "Category selection")
> Range("B2:b500").Activate
> do until ????
> Selection.Find(What:=category, After:=ActiveCell, LookIn:=xlFormulas,
> LookAt _
> :=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext,
> MatchCase:= _
> False, SearchFormat:=False).Activate
> ActiveCell.EntireRow.Hidden = False
> Cells.FindNext(After:=ActiveCell).Activate
> Loop
>
> End Sub
>
>
> "Matthew Herbert" wrote:
>
>> On Aug 13, 1:05 pm, paularo <paul...@discussions.microsoft.com> wrote:
>> > I need to have a "do" loop that goes until it can no longer find the
>> > item
>> > searched for. How do I word that? What's comes after "do until" on
>> > the
>> > first line of the statement? I already have the rest written!
>> >
>> > Thanks.
>>
>> Paularo,
>>
>> Can you post your syntax? You will likely need to create an anchor
>> for the first found range and when the Next find takes place you can
>> test the Next address against the anchor address to determine whether
>> you are at the start again (i.e. the first found range).
>>
>> Best,
>>
>> Matthew Herbert
>>