LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 345
Default InputBox Ypos Calculator, oct07

Hi -
I want to build a function that will assist in setting the Ypos for
an InputBox. I have a lot of variability in how deep they are, and if there's
a lot of text lines I want the Ypos 'higher' on the screen.

What's your take on the following before I start barking up the wrong tree:

About 42 characters before a text line wraps around.
The vbCr constant is Chr(13).

So .... a formula to get the text line count to vary the Ypos would be
something like:

Qtylines = int(len(concatenation of string vars in box msg) / 42) plus
results of a loop that counts the occurances of chr(13) in the aforementioned
concatenation.

The result would not have to be exact, but a decent 'indicator'.

Thanks.
--
Neal Z
 
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
Calculator Word cat Excel Discussion (Misc queries) 4 August 29th 07 12:48 AM
Integrated calculator in excel 07 instead of separate calculator Wayne Excel Programming 1 July 26th 06 04:16 PM
uk tax calculator DarkNight New Users to Excel 21 May 3rd 06 06:19 PM
Inputbox and Application.InputBox Maria[_7_] Excel Programming 1 September 20th 04 11:36 AM
Pop-up calculator? 43fan Excel Programming 4 July 22nd 04 12:03 AM


All times are GMT +1. The time now is 01:39 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"