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



------------------------------------------------
~~ Message posted from http://www.WordForums.com/
~~ View and post usenet messages directly from http://www.WordForums.com/

Re: Add a scrollbar on a User Form using word 2000 by Jonathan

Jonathan
Fri Nov 07 10:47:03 CST 2003

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.

--
Regards
Jonathan West - Word MVP
http://www.multilinker.com
Please reply to the newsgroup

"constance" <constance.wj3x1@nospam.WordForums.com> wrote in message
news:constance.wj3x1@nospam.WordForums.com...
> 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
>
>
>
> ------------------------------------------------
> ~~ Message posted from http://www.WordForums.com/
> ~~ View and post usenet messages directly from http://www.WordForums.com/
>


Re: Add a scrollbar on a User Form using word 2000 by JGM

JGM
Fri Nov 07 12:39:17 CST 2003

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
jmarcil@sympatico.ca

"Jonathan West" <jwest@mvps.org> a écrit dans le message de news:
O1LzJMVpDHA.1020@TK2MSFTNGP09.phx.gbl...
> 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.
>
> --
> Regards
> Jonathan West - Word MVP
> http://www.multilinker.com
> Please reply to the newsgroup
>
> "constance" <constance.wj3x1@nospam.WordForums.com> wrote in message
> news:constance.wj3x1@nospam.WordForums.com...
> > 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
> >
> >
> >
> > ------------------------------------------------
> > ~~ Message posted from http://www.WordForums.com/
> > ~~ View and post usenet messages directly from
http://www.WordForums.com/
> >
>