LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default Count Bold - need to Recalculate?

All,

I have used some code (found on this site - thank you!) that will effectively
count the number of cells in a range that are bold. Here is the code:

Function CountBold(rg As Range) As Long
'originally posted by Ron Rosenfeld
Dim c As Range
For Each c In rg
CountBold = CountBold - c.Font.Bold
Next c
End Function

The cell that is "counting" uses this formula: =countBold(K11:L15)

The formula works! However, the issue is that it will not automatically
recalculate if I "bold" or "unbold" one of the cells in the range - even
though "Recalculate" (F9) is set to Automatic.

The only way the formula updates is to click into the formula cell and hit
enter.

Please explain how I can get this to update automatically upon bolding or
unbolding a cell found in the range.

Thanks.

--
Message posted via http://www.officekb.com

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Count Bold Text CheekyChappy Excel Worksheet Functions 8 October 21st 08 09:10 PM
How to count number of Cell have Strike Through Effect & Bold as font style. Akash Maheshwari Excel Discussion (Misc queries) 6 June 29th 07 09:39 PM
Join bold and non-bold text in one cell bkincaid Excel Discussion (Misc queries) 3 March 21st 06 12:58 AM
How do I ask Excel to count how many items are in BOLD TYPE? Head Honcho Excel Discussion (Misc queries) 1 August 5th 05 12:35 AM
Count bold text values Stan Altshuller Excel Worksheet Functions 1 June 7th 05 10:33 PM


All times are GMT +1. The time now is 08:09 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"