ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   conditional formating bold is true not bold false how (https://www.excelbanter.com/excel-programming/413051-conditional-formating-bold-true-not-bold-false-how.html)

victorio0704

conditional formating bold is true not bold false how
 
What I want to do is for it to look if it finds the text in BOLD then it is
true if the text is not in Bold then is false

[email protected]

conditional formating bold is true not bold false how
 
Hi
not sure if this is what you want. Probably not.

Sub tester()
If ActiveCell.Font.Bold = True Then
MsgBox "Cell text is Bold"
Else
MsgBox "Cell text is not Bold"
End If
End Sub

macro tests if active cell is bold or not.
regards
Paul
On Jun 24, 3:12*pm, victorio0704
wrote:
What I want to do is for it to look if it finds the text *in BOLD then it is
true if the text is not in Bold then is false



victorio0704

conditional formating bold is true not bold false how
 
The macro is ok but I need to apply it on a excel cell not in a program; how
do i put it in a cell

" wrote:

Hi
not sure if this is what you want. Probably not.

Sub tester()
If ActiveCell.Font.Bold = True Then
MsgBox "Cell text is Bold"
Else
MsgBox "Cell text is not Bold"
End If
End Sub

macro tests if active cell is bold or not.
regards
Paul
On Jun 24, 3:12 pm, victorio0704
wrote:
What I want to do is for it to look if it finds the text in BOLD then it is
true if the text is not in Bold then is false




Gord Dibben

conditional formating bold is true not bold false how
 
Function IsBold(Cell)
IsBold = Cell.Font.Bold
End Function

Note: a change of font format will not trigger a re-calculation.


Gord Dibben MS Excel MVP

On Tue, 24 Jun 2008 12:36:09 -0700, victorio0704
wrote:

The macro is ok but I need to apply it on a excel cell not in a program; how
do i put it in a cell

" wrote:

Hi
not sure if this is what you want. Probably not.

Sub tester()
If ActiveCell.Font.Bold = True Then
MsgBox "Cell text is Bold"
Else
MsgBox "Cell text is not Bold"
End If
End Sub

macro tests if active cell is bold or not.
regards
Paul
On Jun 24, 3:12 pm, victorio0704
wrote:
What I want to do is for it to look if it finds the text in BOLD then it is
true if the text is not in Bold then is false





Joakin86

conditional formating bold is true not bold false how
 


Hi,

I have the same problem too.

At the moment I have these cells (2 rows and 5 columns):

A B C
D E
Bangladesh (Bangladesh Taka)* TRUE Bangladesh
Chittagong (Agrabad, St. Martin, 108 7,380 FALSE Sonargaon)
Peninsula) TRUE Peninsula)

* A1 is bold

My D column evaluates =EXACT(A1,"") such that for every new country, in this
case Bangladesh, if D1 is true E1 will copy the name of the new country.

the problem arises in the third line: Since I have to copy all the countries
in this database, some lines take more than one line space such in this case
and when I use my formula E3 gets the name of A3. Yet, this is a flaw I am
trying to fix testing for bold in the cell A3. I am using
IsBold(A3,A3.Font.Bold) but it does not work.

Any suggestions?

Thanks a lot


All times are GMT +1. The time now is 05:35 PM.

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