Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 271
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 91
Default 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


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 271
Default 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


" wrote:

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


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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 91
Default 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


" wrote:

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


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
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
Text Box w/Scroll Bar Chip Excel Discussion (Misc queries) 2 December 12th 06 12:08 AM
Activating scroll bars in a text box on a userform Fred Holmes Excel Programming 0 November 18th 04 10:36 PM
Scroll Bars in TextBox on UserForm Fred Holmes Excel Programming 0 October 29th 04 12:42 PM
Text box Scroll bar position Vinay[_2_] Excel Programming 2 June 10th 04 04:46 PM
Userform and scroll bars KimberlyC Excel Programming 3 April 2nd 04 04:40 PM


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