Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a range of cells J4:J404 that contain Strings of data. The default
font properties for this range a font.Name: "Arial", Font.Size: 10. There are cells containing highlighted data. Example: Cell J10 contains the string "Cell with non standard font". The word "non" is highlighted with a font.name="Bookman" and a font.size=14. How do I know that a cell contains such highlighted text and what is the property of this text? Do I have to go through the content of the cell character by character? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() A cell with a mixed font size or mixed font will return null. You can check for that to identify those cells. '-- Sub WhatsThere() Dim rCell As Range Set rCell = ActiveCell If IsNull(rCell.Font.Size) Then MsgBox "Cell " & rCell.Address & " has more than one font size. " End If If IsNull(rCell.Font.Name) Then MsgBox "Cell " & rCell.Address & " has multiple fonts. " End If End Sub '-- If you want to know the details then you will have to interrogate each character... -- Jim Cone San Francisco, USA http://www.realezsites.com/bus/primitivesoftware (Excel add-ins for sorting, comparing, counting and...) "Pred" wrote in message I have a range of cells J4:J404 that contain Strings of data. The default font properties for this range a font.Name: "Arial", Font.Size: 10. There are cells containing highlighted data. Example: Cell J10 contains the string "Cell with non standard font". The word "non" is highlighted with a font.name="Bookman" and a font.size=14. How do I know that a cell contains such highlighted text and what is the property of this text? Do I have to go through the content of the cell character by character? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Changing font style/size/color/etc for multiple series in a chart? | Charts and Charting in Excel | |||
Save as dialogue box, changing font size/color | Excel Discussion (Misc queries) | |||
Changing Font color based on font type or size | Excel Discussion (Misc queries) | |||
Default cell comment fill color and font size | Excel Discussion (Misc queries) | |||
Can you keep a cells BOLD Font, cell color size | Excel Discussion (Misc queries) |