shape fill color

J

jzc10

I would like to create a shape that when "right clicked" will provide a menu
with a list of fill colours for the shape.

There is a MS shape with "Yes/No box" options that allows this, and changes
the color from black to white based on the option choosen. I want to have the
option to change to red, green, yellow, blue or black.

Can anyone advise on how I might do this ?

Thanks
 
F

Frank Wuenschel

1. mark your shape then open shape sheet
2. insert "Action" type section
3. insert 5 rows (Actions.Row_1...5)
4. enter this formula into the Action cell of the first row:
=SETF(GetRef(FillForegnd),2)
5. enter "red" into the Menu cell of the first row
6. repeat steps 4 and 5 for other rows and colours, changing number in the
formula (0=black, 2=red, 3=green, 4=blue, 5=yellow)
7. right click menu should provide fill colours now

Frank
 
J

jzc10

Thanks,
Your advice is much apreciated.

Regards

Frank Wuenschel said:
1. mark your shape then open shape sheet
2. insert "Action" type section
3. insert 5 rows (Actions.Row_1...5)
4. enter this formula into the Action cell of the first row:
=SETF(GetRef(FillForegnd),2)
5. enter "red" into the Menu cell of the first row
6. repeat steps 4 and 5 for other rows and colours, changing number in the
formula (0=black, 2=red, 3=green, 4=blue, 5=yellow)
7. right click menu should provide fill colours now

Frank
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top