+ Reply to Thread
Results 1 to 35 of 35

More than 3 formatting conditions - select case?

Hybrid View

  1. #1
    Registered User
    Join Date
    09-18-2008
    Location
    Devon
    MS-Off Ver
    2002
    Posts
    71
    Thank you for the help Roy but I am really struggling to understand how your example works. I think my main trouble, aside from not know a huge amount of vb code, is *where* to put the code within each workbook to make it do what I want! I didn't see that you'd attached another file, so will go and have a look at that now.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Quote Originally Posted by HelenW View Post
    Thank you for the help Roy but I am really struggling to understand how your example works. I think my main trouble, aside from not know a huge amount of vb code, is *where* to put the code within each workbook to make it do what I want! I didn't see that you'd attached another file, so will go and have a look at that now.
    The last example that I posted has all the code in place and is triggered by the calculate event of the sheet - see in the VB Editor WorkSheet_Calculate.

    Every time the workbook calculates the colour coding will update.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    09-18-2008
    Location
    Devon
    MS-Off Ver
    2002
    Posts
    71
    Thank you - I think I am beginning to understand. In this instance, we will always be pulling in data from access to excel, running the macro to do various formatting and date calculations, then I wanted to add the colour formatting on afterwards - will your addition still work? I decided the spreadsheet was far too messy with too many test macros recorded, so I have changed to another one and will add your code in where you did on the last example - I did get Shijesh's code to work perfectly for the colour coding I want, but I have to run a separate macro for that, when the cursor is in the right place!

  4. #4
    Valued Forum Contributor Shijesh Kumar's Avatar
    Join Date
    05-26-2008
    Location
    Bangalore / India
    MS-Off Ver
    2000
    Posts
    717
    Hi Helen,

    I have create a new module called module 8 ...
    See the attachement

    There is also one more code in sheet1(Data) double click on tht to check the code
    this code is needed if you dont want to use button and automate it....
    Attached Files Attached Files

+ Reply to Thread

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