+ Reply to Thread
Results 1 to 2 of 2

Excel VBA to fill in Shape Color when selected in the same row

  1. #1
    Registered User
    Join Date
    03-06-2020
    Location
    Vietnam
    MS-Off Ver
    365
    Posts
    1

    Excel VBA to fill in Shape Color when selected in the same row

    Hi all

    I have 3 questions with multi shape per question and I want the shape to be highlighted if selected. The problem is that it's only highlight the selected shape even when i select other shape in different question. Is there a way to keep the color for each question?


    Thanks for any and all help!
    Attached Files Attached Files
    Last edited by haiduong92; 12-20-2021 at 12:00 AM.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Excel VBA to fill in Shape Color when selected in the same row

    remove the" ElseIf" part of your "If" statement

+ 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. Cell data changes its Specified fill shape color
    By CDanielG in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-28-2020, 01:35 PM
  2. Change Color of text on a shape to No Fill
    By gkumthekar in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-28-2013, 04:38 PM
  3. how to fill color to excel based on selected value
    By sumanthhh2 in forum Excel General
    Replies: 1
    Last Post: 11-01-2012, 11:49 PM
  4. Fill Cell with Color from Shape's color code
    By excelnewbie80 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-02-2012, 05:34 PM
  5. Can I sort Excel sheet by the color of the fill in selected cell
    By hg in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-13-2006, 10:40 PM
  6. VBA Help with changing shape color for selected shapes only
    By Nimrod in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-29-2005, 09:06 AM
  7. [SOLVED] How do I set up an Excel shape to "fill" with a color
    By JESSENBE in forum Excel General
    Replies: 1
    Last Post: 01-31-2005, 05:06 PM

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