Results 1 to 7 of 7

Changing shape and font colour based on text

Threaded View

cristihendrix Changing shape and font... 11-22-2017, 11:50 AM
Alf Re: Changing shape and font... 11-22-2017, 12:58 PM
Olly Re: Changing shape and font... 11-22-2017, 01:09 PM
Kenneth Hobson Re: Changing shape and font... 11-22-2017, 04:29 PM
cristihendrix Re: Changing shape and font... 11-23-2017, 04:55 AM
Olly Re: Changing shape and font... 11-23-2017, 05:16 AM
cristihendrix Re: Changing shape and font... 11-23-2017, 06:51 AM
  1. #1
    Registered User
    Join Date
    10-06-2017
    Location
    UK
    MS-Off Ver
    2013
    Posts
    16

    Changing shape and font colour based on text

    Hello people!

    I have some shapes with text linked to certain cells. When the cell value is "R", I want the shape colour and the text inside the shape colour to be red. The same with B for blue and G for green. I have attached an example. I need a script that runs through the shapes in the sheet and changes the shape and font colour accordingly. I have tried a few times, but couldn't come up with a solution.

    When I try to Dim Shp As Shape, I get an error at the For Each Shp in Sheets("...").Shapes . It seems that no shape is found.

    Can anyone help me with a solution?

    Thank you
    !
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Count Based on Text and Font colour
    By SamFitz in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-02-2016, 12:39 PM
  2. Changing font colour based on a character
    By pjzapped in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 03-27-2016, 07:02 AM
  3. Replies: 1
    Last Post: 01-02-2015, 09:18 AM
  4. Getting Colour wise totals by changing font colour
    By Anuru in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-24-2014, 11:13 AM
  5. Macros assigned Shape, colour changing code needed please
    By lcartwright in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-14-2014, 05:36 AM
  6. [SOLVED] Changing Shape colour by a click?
    By ttwilliams@xtra.co.nz in forum Excel General
    Replies: 4
    Last Post: 10-27-2005, 05:05 AM
  7. Changing the Colour of an Auto Shape (Line)
    By d.i.barr in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-23-2005, 05:48 AM

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