check if any cell in column A has text

J

jjnotme

I need to check if any cell in column A has text, if it does, then
bold the whole row, and inset a row under it.

Thank you.

Carol
 
G

GTVT06

I need to check if any cell in column A has text, if it does, then
bold the whole row, and inset a row under it.

Thank you.

Carol

Try this:

Sub TEST()
Dim cell As Range
For Each cell In Range("A1:A65536")
If Application.WorksheetFunction.IsText(cell.Value) Then
cell.EntireRow.Font.Bold = True
Rows(cell.Offset(1, 0).Row).Insert shift:=xlDown
Else
End If
Next cell
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top