ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Cell format as condition (https://www.excelbanter.com/excel-worksheet-functions/211377-cell-format-condition.html)

Mars

Cell format as condition
 
I would like to evaluate the formatting of a cell as a condition to setting
the value in another cell. For example, I have list values in cell in which
the user has used BOLD format to indicate choice. I would like to read the
identify the cells with BOLD format and they populate value of the cell in
new cell. Any suggestions or help is greatly appreciated. Thanks in advance.

- mars

Corey[_3_]

Cell format as condition
 
Not sure if it was what you are after:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If ActiveCell.Font.Bold = True Then
ActiveCell.Offset(1, 0).Value = ActiveCell.Value
End If
End Sub

Modify the offset to suit.

Corey....

"mars" wrote in message
...
I would like to evaluate the formatting of a cell as a condition to setting
the value in another cell. For example, I have list values in cell in
which
the user has used BOLD format to indicate choice. I would like to read
the
identify the cells with BOLD format and they populate value of the cell in
new cell. Any suggestions or help is greatly appreciated. Thanks in
advance.

- mars





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

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