+ Reply to Thread
Results 1 to 6 of 6

Color cells using VBA for backwards compatibility

  1. #1
    Registered User
    Join Date
    09-14-2010
    Location
    brisbane, australia
    MS-Off Ver
    Excel 2007
    Posts
    4

    Red face Color cells using VBA for backwards compatibility

    Hi,

    It has been a decade since I used VBA,

    After several days of reading forums, VBA tutorials etc I am running into trouble.

    I have a 2 workbooks

    "Chassi Selector" is completed using 2007 and works perfectly.

    "Chassi VBA Edit" is where I am trying to simulate the other file for backwards compatability.

    Cells in 2 colums have a drop list.
    When a value is selected it needs to color a range of cells.
    If a different value is selected it then needs to clear that color and replace it with the new color to the new range size
    The first 5 cells I have managed to get it to look and operate correctly.

    Excel 2007 allows conditional formatting to achieve what I wanted (more than 3 conditions)but it needs to be backwards compatable for anyone using a earlier version.

    My code will work but it is highly repetitive. I am sure there is a simple way to condense the code to achieve the result.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    09-14-2010
    Location
    brisbane, australia
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Color cells using VBA for backwards compatibility

    Additionally,

    If any one can also include the functionality that
    1.If the cells are colored you cannot select a value in another colored cell.
    2. THe colored cells will not allow selection if the colors will overlap.

  3. #3
    Registered User
    Join Date
    09-14-2010
    Location
    brisbane, australia
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Color cells using VBA for backwards compatibility

    Bump no response

  4. #4
    Registered User
    Join Date
    09-14-2010
    Location
    brisbane, australia
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Color cells using VBA for backwards compatibility

    bump no response

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Color cells using VBA for backwards compatibility

    Maybe this
    Please Login or Register  to view this content.
    Hope that helps.

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

    Free DataBaseForm example

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Color cells using VBA for backwards compatibility

    I'm not sure if this is doing what you want
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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