Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 269
Default Drawing Object in a Userform

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.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Drawing Object in a Userform

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


"Zone" wrote in message
oups.com...
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.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,489
Default Drawing Object in a Userform

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

Zone wrote:
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.


--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 269
Default Drawing Object in a Userform

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!

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Drawing Object in a Userform

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



"Zone" wrote in message
oups.com...
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!



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
Make Drawing Object Unsizeable An Excel Programming 9 January 24th 06 04:19 AM
Inserting a drawing object into a cell RPrinceton Excel Programming 2 June 10th 05 07:35 PM
Controlling the movement of a drawing object Andrew B[_4_] Excel Programming 1 May 18th 05 01:02 PM
Drawing Object Shawn Excel Programming 2 March 2nd 05 03:04 PM
Drawing object references JASon Excel Programming 2 August 28th 03 10:49 PM


All times are GMT +1. The time now is 06:57 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"