Hi,
I have this code to find specific text entries in a ledger. It then bolds the cell. While I have located this cell, how can I then make the row active to adjust the row height?
thanks
Sub Boldtotalcostofsales()
'bolds total cost of sales title
Dim c As Range, firstaddress As String, ws As Worksheet, FindMe As String
FindMe = "Total Cost Of Sales"
'the value to find
For Each ws In ThisWorkbook.Worksheets
'loop through each worksheet
With ws.UsedRange
Set c = .Find(FindMe, LookIn:=xlValues, LookAt:=xlWhole, MatchCase:=True)
If Not c Is Nothing Then
firstaddress = c.Address
Do
c.Font.Bold = True
'if found, make it bold
Set c = .FindNext(c)
Loop While Not c Is Nothing And c.Address <> firstaddress
End If
End With
Next ws
End Sub
[
Bookmarks