search column
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Search a Column for

Search a Column for

resolvedResolved · Low Priority · Version 2003

replyReply Sun 3 May 2009, 15:15Delegate Daren said...

Daren has attended:
Excel VBA Intro Intermediate course

Search a Column for

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

For upcoming training course dates see: Pricing & availability

replyReply Tue 5 May 2009, 16:36Trainer Anthony said...

RE: Search a Column for

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.

 

Please browse our web site to find out more about
excel consultant and other Microsoft training courses.

Excel tip:

Importing Numbers in Excel 2010

Occasionally, when importing data into Excel you find that the some of the imported values are treated as text.

To convert these numbers to actual values, click on an empty cell and press Ctrl+C.

Next, select the range that contains the values you need to change and in the Clipboard Group on the Home tab, click the Paste drop-down arrow and choose Paste Special. In the Paste Special dialog box, select Add and then click OK.

View all Excel hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard