Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 69
Default Scrollbars on a Userform

Hello All,
I created a userform that displays a .jpg of instructions that the user of
the workbook can display at any point. The .jpg is approx 3 inches wide and 9
inches long so I set the wide of the userform accordingly and set the height
to 5 inches so that the user can scroll.
I set the property of the userfrom to display vertical scrollbars and they
appear when I F5 to view it but they don't scroll, they only have the arrows
at the top and the bottom and the .jpg is only partially viewable.
Am I forgetting a setting or something?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Scrollbars on a Userform

You also need to set ScrollHeight, either in properties or programmatically
in the Userform initialize event.

If you put your image directly in the Userform, in design mode set the size
of your form to that of the jpg, then resize the form in the initialize
event.

Or, add an image control also to same size as image and the form to
something shorter. Set the
In the initialize event
Me.scrollheight = me.image1.height

You might need to experiment a little.

Regards,
Peter T



I you would be
"TimT" wrote in message
...
Hello All,
I created a userform that displays a .jpg of instructions that the user of
the workbook can display at any point. The .jpg is approx 3 inches wide

and 9
inches long so I set the wide of the userform accordingly and set the

height
to 5 inches so that the user can scroll.
I set the property of the userfrom to display vertical scrollbars and they
appear when I F5 to view it but they don't scroll, they only have the

arrows
at the top and the bottom and the .jpg is only partially viewable.
Am I forgetting a setting or something?



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
Scrollbars in Listbox Sri Excel Discussion (Misc queries) 2 August 13th 07 01:06 PM
textbox scrollbars disappear Yaniv Excel Programming 3 July 27th 05 01:24 PM
Scrollbars & Userforms Keith S Excel Programming 2 January 21st 05 03:05 PM
ListBox Scrollbars Charles Excel Programming 0 January 22nd 04 03:41 PM
Getting rid of scrollbars for listbox Marcie Excel Programming 2 September 20th 03 11:15 PM


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