Results 1 to 35 of 35

More than 3 formatting conditions - select case?

Threaded View

HelenW More than 3 formatting... 12-11-2008, 06:38 AM
royUK Try this, change the... 12-11-2008, 06:51 AM
royUK This code should work for you... 12-11-2008, 06:57 AM
HelenW Have pasted in as suggested... 12-11-2008, 07:16 AM
royUK I think this code matches the... 12-11-2008, 07:28 AM
royUK Are you sure the code is in... 12-11-2008, 07:25 AM
HelenW Hi Roy Have attached the... 12-11-2008, 07:45 AM
royUK It looks to me that you want... 12-11-2008, 07:54 AM
HelenW Yes, that's right, but it... 12-11-2008, 07:59 AM
royUK Column P values are the... 12-11-2008, 08:03 AM
HelenW OK, so if I do paste special... 12-11-2008, 08:07 AM
Shijesh Kumar Try the below link.. may be... 12-11-2008, 08:12 AM
royUK If you manually enter the... 12-11-2008, 08:15 AM
HelenW I still can't get it to run!... 12-11-2008, 08:33 AM
royUK Have a look at this 12-11-2008, 09:01 AM
HelenW Thanks - but not sure what is... 12-11-2008, 09:46 AM
royUK If this refers to my last... 12-11-2008, 10:12 AM
HelenW Thanks Shijesh - I have tried... 12-11-2008, 08:50 AM
Shijesh Kumar Sub xformat() Do While... 12-11-2008, 09:06 AM
Shijesh Kumar try this Place the cursor... 12-11-2008, 09:07 AM
HelenW Shijesh - that is perfect!... 12-11-2008, 09:56 AM
royUK I think this is close to what... 12-11-2008, 09:20 AM
Shijesh Kumar Hi Helen, I modified the... 12-11-2008, 10:02 AM
HelenW Brilliant - thank you so... 12-11-2008, 10:12 AM
Shijesh Kumar For that u need to add a... 12-11-2008, 10:28 AM
royUK You can call the addFormat... 12-11-2008, 11:10 AM
HelenW I think I'm there - thank you... 12-11-2008, 11:30 AM
royUK I've added a button & some... 12-11-2008, 11:40 AM
HelenW Hello all I'm working with... 01-07-2009, 12:23 PM
shg Your workbook contains no... 01-07-2009, 01:44 PM
HelenW Oh, I attached 2 spreadsheets... 01-08-2009, 04:58 AM
  1. #1
    Registered User
    Join Date
    09-18-2008
    Location
    Devon
    MS-Off Ver
    2002
    Posts
    71

    More than 3 formatting conditions - select case?

    Hello again!

    My next problem - I have 5 formatting conditions that I need to add in my macro and have just recently found out that I can't have more than 3 in my version of Excel - DOH.

    Anyway, some research has indicated that you can use something called select case to get round this? Hopefully someone can help please!

    I need to colour the range as follows:

    Range("H2:M2").Select
        Range(Selection, Selection.End(xlDown)).Select
    When P2= 1, 2, 3 or 5 then different colours will apply (1 per number) to the above range. If P2=4 then the following range needs to be used:

    Range("H2:I2,L2:M2").Select
        Range(Selection, Selection.End(xlDown)).Select
    And a different colour is used.

    Is that enough info for someone to provide me with the correct code please?

    Thanks!

    Helen
    Last edited by HelenW; 12-11-2008 at 11:55 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1