Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Autoshapes on Excel user forms

Hi everyone,

Is it possible to draw autoshapes on excel user forms with code on
form load?

Regards
Stefano
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Autoshapes on Excel user forms

Is it possible to draw autoshapes on excel user forms with
code on form load?


Yes, look up the AddShape method of the Shapes Collection. Here is an
example...

Worksheets("Sheet1").Shapes.AddShape msoShapeCloudCallout, 20, 40, 50, 60

Rick

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 421
Default Autoshapes on Excel user forms

Hi Stefano,

=============
Is it possible to draw autoshapes on excel user forms with code on
form load?
=============

There is no in-built way to add a shape to a
Userform

You could, however use a label or an image
control to display a picture of the shape.

See, for example, Andy Pope at:

Drawing on userform
http://www.andypope.info/vba/userformdraw.htm



---
Regards.
Norman
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Autoshapes on Excel user forms

Hmm! You said "user forms" (two words) and I thought you meant a worksheet
"form"... Norman read that you meant UserForm (one word)... I'm guessing
Norman is probably right.

Rick


"Rick Rothstein (MVP - VB)" wrote in
message ...
Is it possible to draw autoshapes on excel user forms with
code on form load?


Yes, look up the AddShape method of the Shapes Collection. Here is an
example...

Worksheets("Sheet1").Shapes.AddShape msoShapeCloudCallout, 20, 40, 50, 60

Rick


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
User Forms in excel 2007 krc547 Excel Programming 1 November 28th 07 03:32 PM
Help with programming Excel User Forms [email protected] Excel Programming 4 August 8th 07 04:49 PM
User Forms - getting them to talk to Excel Amber_D_Laws[_39_] Excel Programming 12 February 1st 06 05:17 PM
User Forms and Excel Functions sottsee Excel Programming 1 July 14th 05 11:29 PM
User forms in Excel Eric Excel Programming 3 February 11th 05 06:10 PM


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

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

About Us

"It's about Microsoft Excel"