Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,163
Default Display AutoShape in UserForm

Userforms use the MSForms objects and so they don't natively support
autoshapes. But you can insert an image control and then (either manually at
setup time or through code) specify the picture to go in the image control.
So if you make two picture files for your arrows you should be able to
display them on the userform, something like this with the proper
substitutions:

If {whatever your condition is} Then _
UserForm1.Image1.Picture = LoadPicture("C:\GreenArrow.bmp") Else _
UserForm1.Image1.Picture = LoadPicture("C:\RedArrow.bmp")
--
- K Dales


"bforster1" wrote:


I am trying to have AutoShapes displayed, specifically a green up arrow
and red down arrrow, in a UserForm based on certain conditions. Any
suggestions. Here is what I tried;

Private Sub UserForm_Initialize()
TextBox1.Object = AutoShape27
End Sub

Does not work.

Please help.


--
bforster1
------------------------------------------------------------------------
bforster1's Profile: http://www.excelforum.com/member.php...o&userid=11771
View this thread: http://www.excelforum.com/showthread...hreadid=481825


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
display userform at certain time Anthony Excel Worksheet Functions 2 October 29th 08 04:21 PM
display userform Anthony Excel Discussion (Misc queries) 3 February 27th 07 04:02 PM
macro in vba to display autoshape jrd269[_6_] Excel Programming 0 June 7th 05 08:45 PM
How to force userform to display everything? John Mitchell Excel Programming 3 October 13th 04 12:41 PM
How to cause userform to display Jim[_31_] Excel Programming 4 November 28th 03 11:00 PM


All times are GMT +1. The time now is 08:27 AM.

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"