microsoft excel training - conditional formatting
Microsoft Office Training verified by visa - mastercard securecode about microsoft training company london ukadd this page to your favourites/bookmarksAdd to favourites
view a printable version of this pagePrintable version
email this page to somebodyEmail this page
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Excel Training and help » microsoft excel training - Conditional Formatting

microsoft excel training - Conditional Formatting

The UK's most regular instructor-led training courses.
Training information: microsoft excel training · Excel/courses/london · Microsoft Excel Training London
See also · excel-courses-london · excel courses in london · excel microsoft training

resolvedResolved · Low Priority · Version Standard

Conditional Formatting

by - Claire [guest] (2006 Nov 22 Wed, 11:13) replyReply


Is there a way to extend the range of conditional formatting to more than three conditions?

Excel VBA 2 day course
Version Date Location Places
available
Book Next place rate:
Card Invoice
2003/XP 2008 Jul 17 Thu + 18 Fri Bloomsbury 3 book now £475 £495
2003/XP 2008 Jul 30 Wed + 31 Thu Bayswater 5 book now £450 £485
2003/XP 2008 Aug 7 Thu + 8 Fri Bloomsbury 6 book now £450 £485
2003/XP 2008 Aug 14 Thu + 15 Fri Bloomsbury 5 book now £450 £485
2003/XP 2008 Aug 26 Tue + 27 Wed Bayswater 6 book now £450 £485
2003/XP 2008 Sep 8 Mon + 9 Tue Bayswater 7 book now £345 £399
Full Schedule: See all 48 Excel VBA course dates.
Bookings currently available until 26th November 2009.

RE: Conditional Formatting

by - trainer Richard platinum contributer[761 posts] (2006 Nov 22 Wed, 11:35) replyReply

Yes, you can do it by using VBA coding. If you have not had any experience using VBA, this may be a steep learning curve.


STEPS:

Save your workbook, then activate the worksheet, right-click its Sheet Name tab, select View Code, and enter the following code:

----------------------

Private Sub Worksheet_Change(ByVal Target As Range)



Dim icolor As Integer

If Not Intersect(Target, Range("A1:A10")) is Nothing Then

Select Case Target

Case 1 To 5

icolor = 6

Case 6 To 10

icolor = 12

Case 11 To 15

icolor = 7

Case 16 To 20

icolor = 53

Case 21 To 25

icolor = 15

Case 26 To 30

icolor = 42

Case Else

'Whatever

End Select

Target.Interior.ColorIndex = icolor

End If



End Sub

---------------


Related articles

· How to Create Better Excel Spreadsheets: Part One
· Tips to Facilitate Printing of Excel worksheets
· 3 Reasons why Your Small Business Office Needs Microsoft Excel Training
· MS Excel: Excel At Making The Most Of Your Christmas
· Do You Really Need Excel VBA Training?

Excel tip:

Create Charts with One keystroke

Create a graph with one click

1. Select your data.
2. Press F11.
3. You have a graph.

View all Excel hints and tips

Institute of IT Training - Accredited Training Provider Institute of IT Training - Accredited Training Provider Prodigy Platinum Learning Partner Microsoft Office Specialist Authorised Testing Centre

Microsoft Registered Partner
microsoft office
ms office project server

Association of Computer Trainers Valid HTML 4.01 Transitional
Valid CSS Markup

secure online payments - visa - mastercard

Mini sitemap. These are the main areas of our web site. Full sitemap.

Training by application Main information pages See also

Access courses
DreamWeaver courses
Excel courses
MS Project courses
Outlook courses
PowerPoint courses
VBA courses
Word courses
(more...)

Public scheduled courses
On-site training
Closed company courses

Microsoft Office training
Pricing and availability
Training schedule
Training venues

Access training
Dreamweaver training
Excel training
MS Project training
PowerPoint training

London Computer Training
Computer Training London

Microsoft Access training
Microsoft Excel training
Microsoft Project training
Microsoft Outlook training
Microsoft Powerpoint training
Microsoft Word training

Time Management Course London

Interested in Access training? Please see the following pages:
microsoft access courses · microsoft training access course
microsoft+access+training · access courses in london

Training Information
AddThis Social Bookmark Button What's this?
Add to Del.icio.us Add to Facebook Add to Digg Add to Reddit Add to Google Add to Yahoo Add to Diigo Add to Mr. Wong Add to Linkarena Add to Power Oldie Add to Folkd Add to Jumptags Add to Upchuckr Add to Simpy Add to StumbleUpon Add to Slashdot Add to Netscape Add to Furl Add to Spurl Add to Blinklist Add to Blogmarks Add to Technorati Add to Newsvine Add to Blinkbits Add to Ma.Gnolia Add to Smarking Add to Netvouz