Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default textbox scrollbars disappear

Hi

i have a textbox in my sheet.
i use the multiline option and the scrollbars option for that textbox.
when i enter text to the textbox, everything is fine (i can see the
scrollbar)
but if i close the sheet and open it again, the scrollbar for that textbox
disappears (so i can't tell that there are more lines in that textbox than
what i can see...)
only when i click in the textbox - the scrollbar reappears...

did anyone see that ?
is there a way to show the scrollbar when opening the file ?

thanks,
Yaniv


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,758
Default textbox scrollbars disappear

You have one commiserating post in .excel.

Yaniv wrote:

Hi

i have a textbox in my sheet.
i use the multiline option and the scrollbars option for that textbox.
when i enter text to the textbox, everything is fine (i can see the
scrollbar)
but if i close the sheet and open it again, the scrollbar for that textbox
disappears (so i can't tell that there are more lines in that textbox than
what i can see...)
only when i click in the textbox - the scrollbar reappears...

did anyone see that ?
is there a way to show the scrollbar when opening the file ?

thanks,
Yaniv


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default textbox scrollbars disappear

"Dave Peterson" a écrit :

You have one commiserating post in .excel.

Yaniv wrote:

i have a textbox in my sheet.
i use the multiline option and the scrollbars option for that textbox.
when i enter text to the textbox, everything is fine (i can see the
scrollbar)
but if i close the sheet and open it again, the scrollbar for that textbox
disappears


Hello,

I really don't like the answer of Dave...

The right answer is to set the focus to the textBox (so that it activates
the scrollbar) then set the pointer of the multiline text to the first line
(otherwise the textbox will show the end of the text). After that, don't
forget to set the focus to the proper element (below, the OK button)

If your the textbox name name is myTextBox and the OK button is cmdOK, add
this at the end of the userform_initialize sub :

Private Sub userform_initialize()
....
myTextBox.SetFocus
myTextBox.Curline=0
cmdOK.SetFocus
End Sub

will do the job

A+, Fred
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default textbox scrollbars disappear

Except the textbox was on a worksheet--not a userform.

FMichaud76 wrote:

"Dave Peterson" a écrit :

You have one commiserating post in .excel.

Yaniv wrote:

i have a textbox in my sheet.
i use the multiline option and the scrollbars option for that textbox.
when i enter text to the textbox, everything is fine (i can see the
scrollbar)
but if i close the sheet and open it again, the scrollbar for that textbox
disappears


Hello,

I really don't like the answer of Dave...

The right answer is to set the focus to the textBox (so that it activates
the scrollbar) then set the pointer of the multiline text to the first line
(otherwise the textbox will show the end of the text). After that, don't
forget to set the focus to the proper element (below, the OK button)

If your the textbox name name is myTextBox and the OK button is cmdOK, add
this at the end of the userform_initialize sub :

Private Sub userform_initialize()
....
myTextBox.SetFocus
myTextBox.Curline=0
cmdOK.SetFocus
End Sub

will do the job

A+, Fred


--

Dave Peterson
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
All my textbox disappear.. Hwee Excel Worksheet Functions 1 April 22nd 09 03:55 PM
Scrollbars in Listbox Sri Excel Discussion (Misc queries) 2 August 13th 07 01:06 PM
Why does my textbox disappear when I put it on a chart? krbear Charts and Charting in Excel 2 April 6th 06 11:56 PM
Single quote in a textbox disappear when put in cell? NooK[_19_] Excel Programming 2 June 30th 04 08:58 AM
ListBox Scrollbars Charles Excel Programming 0 January 22nd 04 03:41 PM


All times are GMT +1. The time now is 09:06 AM.

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"