Drawing Object in a Userform

  • Thread starter Thread starter Zone
  • Start date Start date
Z

Zone

Is there anyway to insert a drawing object in a userform? I would like
to have a rectangle in there so the user can use spinner controls to
try out changes to RGB colors. Alternatively, is there a way to get
this info from the standard Excel userform? Excel2002.
 
Excel user forms don't support shapes. For a rectangle, use the
Frame control and set the caption to an empty string.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
 
Hi,

Can you not use a Label control?
You can adjust the backcolor using the RGB() function, picking up the
Red, Green and Blue values from the spinner controls.

Cheers
Andy
 
Thank you, Chip and Andy. This is a great help. Chip's frame works
well for the fore and back colors. To complicate matters, I want to be
able to select a pattern to mix the fore and back colors. Don't see
any access to that in the properties. I thinking of just opening
another spreadsheet with a drawing object on it and using spinners on a
userform to set fore RGB, pattern and back RGB unless you have better
idea. At any rate, thanks again!
 
One cluncky way might be to adapt Stephen Bullen's PastePicture.xls (.zip)
www.oaltd.co.uk

hide your chartobject somewhere, format the chartarea with no series data /
plot.

Why not let user apply pattern formats directly to selection and see changes
in real time, that's what I do (and a lot else!).

Regards,
Peter T
 

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

Back
Top