Advertisement

01.12.2008 at 11:13AM PST, ID: 23078216
[x]
Attachment Details

Use of "if-and" structures within a loop

Asked by WileyPowers in Microsoft Programming, Microsoft Excel Spreadsheet Software, VB Script

Tags: Microsoft, VBA Excel

Hi all,
I have defined the following logical sentence: =IF(AND(LEN(A1)=6);ISNUMBER(A1)) This will return either TRUE or FALSE. What I struggle with is to use this as a filter criteria in a vba loop. So, my question to you is: can you construct a loop in VBA which makes use of the above logical sentence and that highlights the observations (in a range) that is TRUE? This without inserting the formula and/or making TRUE/FALSE visable in Excel - I just need it a s a filter rule which will highlight the ones that is TRUE. Start Free Trial
[+][-]01.12.2008 at 11:24AM PST, ID: 20644984

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Programming, Microsoft Excel Spreadsheet Software, VB Script
Tags: Microsoft, VBA Excel
Sign Up Now!
Solution Provided By: saurabh726
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628