+ Reply to Thread
Results 1 to 5 of 5

userform text box and a scroll bar

Hybrid View

  1. #1
    Shawn
    Guest

    userform text box and a scroll bar

    I have never used a scroll bar in conjunction with a text box. Please help.

    I have userform CCLCFC

    I have text box txtbxexplain

    I have scrollbar scbrexplian

    Via VBA I want to tie scbrexplain to txtbxexplain so that when one uses the
    scrollbar he/she can scroll up and down through the information in the text
    box. Please help.



    --
    Thanks
    Shawn

  2. #2
    crferguson@gmail.com
    Guest

    Re: userform text box and a scroll bar

    Rather than having two separate controls for that, wouldn't you simply
    want to set the "ScrollBars" property of the textbox to "2 -
    fmScrollBarsVertical"?


    Shawn wrote:
    > I have never used a scroll bar in conjunction with a text box. Please help.
    >
    > I have userform CCLCFC
    >
    > I have text box txtbxexplain
    >
    > I have scrollbar scbrexplian
    >
    > Via VBA I want to tie scbrexplain to txtbxexplain so that when one uses the
    > scrollbar he/she can scroll up and down through the information in the text
    > box. Please help.
    >
    >
    >
    > --
    > Thanks
    > Shawn



  3. #3
    crferguson@gmail.com
    Guest

    Re: userform text box and a scroll bar

    Oh, and set the "MultiLine" property of the textbox to "True" as
    well...


    crferguson@gmail.com wrote:
    > Rather than having two separate controls for that, wouldn't you simply
    > want to set the "ScrollBars" property of the textbox to "2 -
    > fmScrollBarsVertical"?
    >
    >
    > Shawn wrote:
    > > I have never used a scroll bar in conjunction with a text box. Please help.
    > >
    > > I have userform CCLCFC
    > >
    > > I have text box txtbxexplain
    > >
    > > I have scrollbar scbrexplian
    > >
    > > Via VBA I want to tie scbrexplain to txtbxexplain so that when one uses the
    > > scrollbar he/she can scroll up and down through the information in the text
    > > box. Please help.
    > >
    > >
    > >
    > > --
    > > Thanks
    > > Shawn



  4. #4
    Shawn
    Guest

    Re: userform text box and a scroll bar

    Great. Two issues. Why doesn't the scroll bar appear when the userform
    initializes? It doesn't appear unless I click the text box.

    2nd...when I click the text box it automitically jumps to the end of the
    text instead of staying at the begining???


    --
    Thanks
    Shawn


    "crferguson@gmail.com" wrote:

    > Oh, and set the "MultiLine" property of the textbox to "True" as
    > well...
    >
    >
    > crferguson@gmail.com wrote:
    > > Rather than having two separate controls for that, wouldn't you simply
    > > want to set the "ScrollBars" property of the textbox to "2 -
    > > fmScrollBarsVertical"?
    > >
    > >
    > > Shawn wrote:
    > > > I have never used a scroll bar in conjunction with a text box. Please help.
    > > >
    > > > I have userform CCLCFC
    > > >
    > > > I have text box txtbxexplain
    > > >
    > > > I have scrollbar scbrexplian
    > > >
    > > > Via VBA I want to tie scbrexplain to txtbxexplain so that when one uses the
    > > > scrollbar he/she can scroll up and down through the information in the text
    > > > box. Please help.
    > > >
    > > >
    > > >
    > > > --
    > > > Thanks
    > > > Shawn

    >
    >


  5. #5
    crferguson@gmail.com
    Guest

    Re: userform text box and a scroll bar

    I'm not trying to be a smart alec (much is lost in text-only
    communication), but that's the way the scroll bars work in Microsoft's
    Excel textbox control.


    Shawn wrote:
    > Great. Two issues. Why doesn't the scroll bar appear when the userform
    > initializes? It doesn't appear unless I click the text box.
    >
    > 2nd...when I click the text box it automitically jumps to the end of the
    > text instead of staying at the begining???
    >
    >
    > --
    > Thanks
    > Shawn
    >
    >
    > "crferguson@gmail.com" wrote:
    >
    > > Oh, and set the "MultiLine" property of the textbox to "True" as
    > > well...
    > >
    > >
    > > crferguson@gmail.com wrote:
    > > > Rather than having two separate controls for that, wouldn't you simply
    > > > want to set the "ScrollBars" property of the textbox to "2 -
    > > > fmScrollBarsVertical"?
    > > >
    > > >
    > > > Shawn wrote:
    > > > > I have never used a scroll bar in conjunction with a text box. Please help.
    > > > >
    > > > > I have userform CCLCFC
    > > > >
    > > > > I have text box txtbxexplain
    > > > >
    > > > > I have scrollbar scbrexplian
    > > > >
    > > > > Via VBA I want to tie scbrexplain to txtbxexplain so that when one uses the
    > > > > scrollbar he/she can scroll up and down through the information in the text
    > > > > box. Please help.
    > > > >
    > > > >
    > > > >
    > > > > --
    > > > > Thanks
    > > > > Shawn

    > >
    > >



+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1