Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Scrolling of UserForm1

Hi there,

i have one problem, i cannot understand using of scrollbar in vb in excel.
I have one userform which is bigger then my screen and i need to put in this
form scrollbar and use it for moving my userform to see all things on it. Can
anyone help me? Thanx a lot.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Scrolling of UserForm1

Try putting code like this in your Initialize event.

Private Sub UserForm_Initialize()
Dim lh As Long
Me.ScrollBars = fmScrollBarsVertical
lh = Me.Height
Me.ScrollHeight = lh
Me.Height = Me.Height / 2
End Sub


Then play with it to get what you want.

--
Regards,
Tom Ogilvy


"frankosun" wrote in message
...
Hi there,

i have one problem, i cannot understand using of scrollbar in vb in excel.
I have one userform which is bigger then my screen and i need to put in

this
form scrollbar and use it for moving my userform to see all things on it.

Can
anyone help me? Thanx a lot.



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
Live Scrolling/Real-Time /Smooth Scrolling doesn't work for me in Excel, even 2007 beta [email protected] Excel Discussion (Misc queries) 2 July 21st 06 01:21 AM
Live Scrolling/Real-Time /Smooth Scrolling doesn't work for me in Excel 2003 [email protected] Excel Discussion (Misc queries) 0 May 12th 06 03:15 AM
userform1.activecontrol.name Italian Job Excel Programming 3 November 14th 03 12:43 PM
Userform1 Border Tom Ogilvy Excel Programming 1 August 13th 03 03:14 PM
Userform1 Border John Wilson Excel Programming 0 August 12th 03 04:08 PM


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