ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   clear cells unless contents are in bold (https://www.excelbanter.com/excel-programming/338151-clear-cells-unless-contents-bold.html)

John Jones

clear cells unless contents are in bold
 
I need help with this problem.

A range in a worksheet contains one single digit integer in each cell.

I want to clear the contents of all the cells; except those where the single
digit integers are in bold.




Tom Ogilvy

clear cells unless contents are in bold
 
Dim cell as Range
for each cell in selection
if not cell.font.bold then
cell.clear
end if
Next

--
Regards,
Tom Ogilvy

"John Jones" wrote in message
...
I need help with this problem.

A range in a worksheet contains one single digit integer in each cell.

I want to clear the contents of all the cells; except those where the

single
digit integers are in bold.







All times are GMT +1. The time now is 06:16 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com