Find the first previous bold cell in column B

Status
Not open for further replies.

KentKHI

Active Member
Joined
Oct 1, 2004
Messages
492
Hey guys,

I just need the code to find the first previous "bold fonted" cell in column B. Here is what I had, but it gives me an error, it probably is not even close. please don't laugh at me. :biggrin:

Code:
        Cells.Columns("B,B").Find(Font.Bold = True, LookIn:=xlValues, SearchDirection:=xlPrevious).Activate

Thanks,

Kent
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
How about something like this? I used a .Select method at the end to go to the cell, but you could MsgBox() the address instead, if you wanted.
Code:
Sub findBold()
Dim i As Long
    i = 1
    
    Do
        i = i + 1
    Loop Until Cells(i, 2).Font.Bold
    Cells(i, 2).Select
    
End Sub
Hope that helps!
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,203,326
Messages
6,054,744
Members
444,748
Latest member
knowak87

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top