PC Review


Reply
Thread Tools Rate Thread

conditional formating bold is true not bold false how

 
 
victorio0704
Guest
Posts: n/a
 
      24th Jun 2008
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
 
Reply With Quote
 
 
 
 
paul.robinson@it-tallaght.ie
Guest
Posts: n/a
 
      24th Jun 2008
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
<victorio0...@discussions.microsoft.com> 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


 
Reply With Quote
 
victorio0704
Guest
Posts: n/a
 
      24th Jun 2008
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

"(E-Mail Removed)" 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
> <victorio0...@discussions.microsoft.com> 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

>
>

 
Reply With Quote
 
Gord Dibben
Guest
Posts: n/a
 
      24th Jun 2008
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
<(E-Mail Removed)> 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
>
>"(E-Mail Removed)" 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
>> <victorio0...@discussions.microsoft.com> 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

>>
>>


 
Reply With Quote
 
Joakin86
Guest
Posts: n/a
 
      25th Jun 2008


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
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How to Make Bold a Command Button Bold If Related Table Has Data doyle60@aol.com Microsoft Access VBA Modules 0 3rd Mar 2009 07:56 PM
How to Make Bold a Command Button Bold If Related Table Has Data doyle60@aol.com Microsoft Access VBA Modules 1 3rd Mar 2009 06:26 PM
In MS Excel under Sort>auto filter. bold non bold dropdown optio Basavaraj Tenginakai Microsoft Excel Crashes 1 21st Feb 2009 10:39 PM
TreeNode in bold clips the label also if Treeview Fond is bold =?Utf-8?B?TWFubw==?= Microsoft Dot NET 11 17th Feb 2006 03:06 AM
Windows 2000 print Chinese character with bold same as not bold S. T. Wong Microsoft Windows 2000 0 3rd Mar 2004 02:52 AM


Features
 

Advertising
 

Newsgroups
 


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