Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,073
Default VBA counting colors, errors

TheRook wrote:
I am currently having 2 problems.
1. If an additional line in inserted with a specific color the count does
not automatically refresh. Can a loop be put in?


Hi Rook,
The closest I've ever got to autorefresh with this type of UDF is to...

1. add Application.Volatile at the start of the code, which forces the
function to be calculated whenever any other formulas are entered on
the sheet, and...

2. paste the following into the Sheet's code module...

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Calculate
End Sub

which forces calculation of the sheet every time a selection change
occurs.

I don't know about your other problem, I couldn't reproduce it.

Ken Johnson

Reply
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
Counting errors kittronald Excel Worksheet Functions 5 May 19th 11 11:45 PM
Counting the number of errors in a worksheet Bob Excel Worksheet Functions 7 November 8th 07 10:22 AM
Counting with a condition disregarding errors vsoler Excel Worksheet Functions 7 May 19th 07 10:04 PM
VBA counting colors, errors TheRook Excel Programming 1 August 18th 06 06:04 PM
Counting Errors Tarique Excel Worksheet Functions 1 February 24th 06 04:54 PM


All times are GMT +1. The time now is 02:01 PM.

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

About Us

"It's about Microsoft Excel"