Formerly Best Training
© 2024 STL. All Rights Reserved.
All prices offered for business users and exclude VAT. E&OE
2nd Floor, CA House, 1 Northey Street, Limehouse Basin, London, E14 8BT. United Kingdom
Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Search a Column for
Resolved · Low Priority · Version 2003
Daren has attended:
Excel VBA Intro Intermediate course
I have a list of FALSE/TRUE statments in cells E37 to E48 from 12 tick boxes
I need to display a message box, only if all the cells are FALSE
How would write the routine
Hi Darren. The simplest way to do this would be to use the COUNTIF function in a piece of VBA code placed in the Worksheet module. COUNTIF will check whether you have 12 "TRUE" values and then display a message box.
Something like this:
If Application.COUNTIF(E37:E48, "TRUE") = 12 Then
MsgBox prompt = "This is my message alert""
Hope this helps,
Anthony
Tue 12 May 2009: Automatically marked as resolved.
|
Excel tip:New Normal WorksheetDo you want all your worksheets to confirm to a certain look? Then change the Defaults!!! |
We'll call during UK business hours
Server loaded in 0.08 secs.