+ Reply to Thread
Results 1 to 4 of 4

Condensing my Code - Changing Multiple Oval Color

  1. #1
    Registered User
    Join Date
    05-07-2013
    Location
    Timaru
    MS-Off Ver
    Excel 2003
    Posts
    15

    Condensing my Code - Changing Multiple Oval Color

    Hi,

    I have some code that I have written that changes the shade of some ovals in my "Overview" sheet when a calculation in the "Log" sheet is updated. It currently works, however I have 105 ovals labelled "Oval1 to Oval105" in the Overview sheet I want to change when the calculation in row "1001" for each column from D to DM changes (eg. Column D = Oval1 Column DM = Oval105).

    How can I make the code simpler below for all the ovals etc without having to do the code for each Oval?

    Please Login or Register  to view this content.
    Thank you

  2. #2
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Condensing my Code - Changing Multiple Oval Color

    Without your worksheet its a bit awkward but maybe something like this that steps through 105 steps using the offset to pick the new column each time and changing the oval name sequentially

    Please Login or Register  to view this content.
    Happy with my advice? Click on the * reputation button below

  3. #3
    Registered User
    Join Date
    05-07-2013
    Location
    Timaru
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Condensing my Code - Changing Multiple Oval Color

    Hey Crooza,

    Works a treat, bloody clever really never thought about a combination "Oval" & i . Will keep this in mind for future projects.

    Thanks

  4. #4
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Condensing my Code - Changing Multiple Oval Color

    Mate - glad it worked. I had nothing to test it on so I was flying blind.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Code for changing cell color
    By ammartino44 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-20-2015, 08:56 AM
  2. Click oval check buttons to fill and unfill color
    By Rocky2013 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-19-2015, 09:00 PM
  3. [SOLVED] Click oval option button to fill/unfill color, also change border color to match fill
    By Rocky2013 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-07-2015, 08:29 PM
  4. Cell color is not changing through vba code
    By kvramana82 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-28-2013, 11:22 AM
  5. [SOLVED] varying number of columns, multiple similar lines of code (needs condensing)
    By intothewild in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-25-2012, 12:32 PM
  6. Condensing Repetitive Code Distributed to Multiple Sheets
    By inwalkedbud in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-01-2007, 01:46 PM
  7. WordArt - changing text color in code
    By SuitedAces in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-25-2007, 08:59 AM

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