Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
How would I write to delete any lines that in column A which are not bolded
and not include blank cells? Thanks! Annette |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dim lastrow as Long
Dim i as Long Dim cell as Range lastrow = cells(rows.count,1).End(xlup).row for i = lastrow to 1 step -1 set cell = cells(i,1) if cell.Font.Bold then if not isempty(cell) then cell.EntireRow.Delete end if end if Next -- Regards, Tom Ogilvy "Annette" wrote in message ... How would I write to delete any lines that in column A which are not bolded and not include blank cells? Thanks! Annette |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() iLastRow = Cells(Rows.Count,"A").End(xlUp).Row For i = iLastRow to 1 step -1 If Cells(i,"A").Value = "" Or _ Cells(i,"A").Font.Bold = False Then Rows(i).Delete End If Next i -- HTH Bob Phillips "Annette" wrote in message ... How would I write to delete any lines that in column A which are not bolded and not include blank cells? Thanks! Annette |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Delete Blank Lines | Excel Discussion (Misc queries) | |||
Bolded Text To Column | Excel Worksheet Functions | |||
the sum of all bolded numbers | Excel Worksheet Functions | |||
how to sort list, bolded items from no bolded? | Excel Discussion (Misc queries) | |||
count non bolded items | Excel Programming |