Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
JESSENBE
 
Posts: n/a
Default How do I set up an Excel shape to "fill" with a color

when "clicked" on (and to "un-fill" when clicked again)?

I would like to make filling shapes function like an option button (on/off)
  #2   Report Post  
tjtjjtjt
 
Posts: n/a
Default

If your only goal is to toggle the fill on and off, you could put this in a
normal module:

Sub Oval2_Click()
If ActiveSheet.Shapes("Oval 2").Fill.Visible = msoFalse Then
ActiveSheet.Shapes("Oval 2").Fill.Visible = msoTrue
Else
ActiveSheet.Shapes("Oval 2").Fill.Visible = msoFalse
End If
End Sub

Remember to change the name to whatever the name of your shape actually is.

If you right-click on a shape and choose assign macro, you can then assign
this macro to the object. When you click it the fill should be removed. Click
it again, and the fill should be visible again.

tj

"JESSENBE" wrote:

when "clicked" on (and to "un-fill" when clicked again)?

I would like to make filling shapes function like an option button (on/off)

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
How do I change fill color default in excel 2003? bowler708 Excel Discussion (Misc queries) 1 January 2nd 05 08:59 PM
Identifying the Active Fill Color Steve Conary Excel Discussion (Misc queries) 3 December 9th 04 04:45 AM
Inserts and color fill jules New Users to Excel 0 November 30th 04 05:27 AM
A different "Fill Color" problem JKD Excel Worksheet Functions 1 November 1st 04 10:21 PM


All times are GMT +1. The time now is 02:28 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"