Add a scrollbar on a User Form using word 2000

C

constance

I have one more question
i did succeed ti add my scrollbar but I have another problem
i do a userform.hide to close my window
but everytime i call my form, the scrollbar is set to the last position
I was
is there a way to avoid that ?
thanx
constance
 
J

Jonathan West

Hi Constance,

You can control the position of the scrollbar with a line of code that sets
the value of the ScrollTop property of the UserForm. The smallest possible
value for the property is 0, and this sets the scrollbar to the top. The
largest bossible value is the different between the ScrollHeitght and Height
properties of the form, which will position the scrollbar at the bottom.
 
C

constance

Hi jonathan thank you very much
i did a scrolltop = 0 when i activate the userform and it works thank
you very much

Constance
 
J

JGM

Hi Constance and Jonathan,

How about adding
Unload Me
after the
Hide.Me
line?

Won't that reset the toolbar to the default top position?

Unless you want to save the Userform values...

Jonathan... A quick question as a follow up...

How do you use the ScrollBar control from the Userfom toolbox? What is the
purpose of such an object...?

Thanks
--
_______________________________________
Jean-Guy Marcil
(e-mail address removed)

Jonathan West said:
Hi Constance,

You can control the position of the scrollbar with a line of code that sets
the value of the ScrollTop property of the UserForm. The smallest possible
value for the property is 0, and this sets the scrollbar to the top. The
largest bossible value is the different between the ScrollHeitght and Height
properties of the form, which will position the scrollbar at the bottom.
 
C

constance

Hi Jean Guy,
I think the unload will work for my scroll bar but i would loose the
information that i need
can you be more precise about what you want to know about the scrollbar
control ?
Constance
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top