Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 280
Default Possibility of counting line in textbox??

See the LineCount property in Help

Private Sub UserForm_Click()
MsgBox UserForm1.TextBox1.LineCount
End Sub

--
Bob Kilmer


"Dan Butler" wrote in message
...
I asked earlier for a way to help decrement font size in order to fill
it
in a textbox that has a set width and height. I think i may have
found a way of doing this if it is possible to determine line counts in
a textbox with multiline and wordwrap set to true.

I want my text box to have a maximum of 3 lines. If the text length
wraps more than 3 lines to decremnet the font size untill goal is
met. I figured tis could be done easy if i can count the amount of
wordwraps performed or the amount of lines used with the
multiline. I haven't founf any docuentaion to help this however. Any
ideas?

..Autosize is not an option as the text box must remian a set
dimmension. scrollbars are also unusaable due to the fact that all
the text must be visible in the textbox upon printing. Thanks
everyone for your help

Dan Butler


*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Possibility of counting line in textbox??

I'm sorry, It's not a userform textbox or an embedded textbox, just a
textbox created from the drawing table onto a worksheet. I would use the
embedded box but i cannot center both horizontally and vertically. Any way
of getting linecount or similar working?
I need to keep the word wrap to only two wraps, (3 lines). Thanks

"Bob Kilmer" wrote in message
...
See the LineCount property in Help

Private Sub UserForm_Click()
MsgBox UserForm1.TextBox1.LineCount
End Sub

--
Bob Kilmer


"Dan Butler" wrote in message
...
I asked earlier for a way to help decrement font size in order to fill
it
in a textbox that has a set width and height. I think i may have
found a way of doing this if it is possible to determine line counts in
a textbox with multiline and wordwrap set to true.

I want my text box to have a maximum of 3 lines. If the text length
wraps more than 3 lines to decremnet the font size untill goal is
met. I figured tis could be done easy if i can count the amount of
wordwraps performed or the amount of lines used with the
multiline. I haven't founf any docuentaion to help this however. Any
ideas?

..Autosize is not an option as the text box must remian a set
dimmension. scrollbars are also unusaable due to the fact that all
the text must be visible in the textbox upon printing. Thanks
everyone for your help

Dan Butler


*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!





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
Is this a possibility using Excel only? rcurrier Excel Discussion (Misc queries) 0 November 16th 06 12:37 AM
Pricelist possibility ? Keith D.B. Excel Discussion (Misc queries) 3 October 19th 06 04:46 PM
Charting possibility debraj Charts and Charting in Excel 5 September 8th 06 11:29 PM
counting line by line matches of 2 columns possible in excel ? Medikto D Excel Discussion (Misc queries) 3 June 1st 06 05:46 PM
Block paste possibility mcs51mc Excel Discussion (Misc queries) 4 November 9th 05 02:30 PM


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