+ Reply to Thread
Results 1 to 6 of 6

want to change fill color on multiple shapes one at a time by mouse clicke the shapes to t

  1. #1
    Registered User
    Join Date
    08-11-2017
    Location
    USA
    MS-Off Ver
    2016
    Posts
    4

    want to change fill color on multiple shapes one at a time by mouse clicke the shapes to t

    want to change fill color on multiple shapes one at a time by mouse clicke the shapes to turn it red or green

  2. #2
    Registered User
    Join Date
    08-11-2017
    Location
    USA
    MS-Off Ver
    2016
    Posts
    4

    Re: want to change fill color on multiple shapes one at a time by mouse clicke the shapes

    I am using this code to change a cell color but I want to perform same type of action on various shapes by clicking on them

    Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
    Cancel = True
    Select Case Target.Interior.ColorIndex
    Case xlNone, 4: Target.Interior.ColorIndex = 3
    Case Else: Target.Interior.ColorIndex = 4
    End Select
    End Sub

    Private Sub Worksheet_BeforeRightClick(ByVal Target As Range, Cancel As Boolean)
    Cancel = True
    Target.Interior.ColorIndex = xlNone
    End Sub

  3. #3
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: want to change fill color on multiple shapes one at a time by mouse clicke the shapes

    Maybe a double-click?

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  4. #4
    Registered User
    Join Date
    08-11-2017
    Location
    USA
    MS-Off Ver
    2016
    Posts
    4

    Re: want to change fill color on multiple shapes one at a time by mouse clicke the shapes

    Yes your code works same as mine but it performs action cells in the worksheet. I am trying to perform the same type action on several hundred Rounded Rectangles I have placed on the worksheet. each having a unique names

  5. #5
    Registered User
    Join Date
    08-11-2017
    Location
    USA
    MS-Off Ver
    2016
    Posts
    4

    Re: want to change fill color on multiple shapes one at a time by mouse clicke the shapes

    Yes your code works same as mine but it performs action to cells in the worksheet. I am trying to perform the same type action on several hundred Rounded Rectangle "Shapes" I have placed on the worksheet. each having a unique names

  6. #6
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: want to change fill color on multiple shapes one at a time by mouse clicke the shapes

    Thanks for the rep but I have yet no solution

+ 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. Fill Color for a Group of Shapes
    By RunRabbit13 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-26-2016, 11:14 PM
  2. Change color of shapes based on a value on another sheet
    By dreddster in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-24-2016, 05:41 PM
  3. [SOLVED] Looping Sheets to change Color of Shapes
    By Hood in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-16-2015, 02:47 PM
  4. Query change the Shapes color by entering value in cell
    By ashokJan in forum Excel General
    Replies: 5
    Last Post: 12-05-2014, 07:09 AM
  5. [SOLVED] Change color of text for a group of shapes
    By emiliekatherine in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-27-2012, 08:43 AM
  6. Help with loop to fill color of shapes (US map)
    By harleyberger in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-28-2012, 01:50 PM
  7. Replies: 1
    Last Post: 04-13-2006, 07:30 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