Skip to Main Content
Computing with Excel and VBA
book

Computing with Excel and VBA

by S.I. Krishan
August 2008
Beginner to intermediate content levelBeginner to intermediate
298 pages
10h 49m
English
Jones & Bartlett Learning
Content preview from Computing with Excel and VBA
Data Validation 97
not 1 or 4, it must be one of the remaining digits. A better way of defining the logic for
Segment 1 would be to check for the presence of digits for which the segment should
come on and not infer their presence by the absence of digits 1 and 4. Such a way of
writing the logic would ensure that the segment displays come on only when a valid
digit is entered. Thus, we should rewrite the formulas for segments numbered 1, 2, 3,
and 7 as follows:
=OR(DIGIT=0,DIGIT=2,DIGIT=3,DIGIT=5,DIGIT=6, for Segment 1,
DIGIT=7,DIGIT=8, DIGIT=9)
=OR(DIGIT=0,DIGIT=1,DIGIT=2,DIGIT=3,DIGIT=4, for Segment 2,
DIGIT=7,DIGIT=8, DIGIT=9)
=OR(DIGIT=0,DIGIT=1,DIGIT=3,DIGIT=4,DIGIT=5, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Excel Programming with VBA Starter

Excel Programming with VBA Starter

Robert F Martin
Programming Excel with VBA and .NET

Programming Excel with VBA and .NET

Jeff Webb, Steve Saunders

Publisher Resources

ISBN: 9780763756680