Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 106
Default Formatted popup window

I need to present a set of Legends + numbers to the user upon clicking a
button. The MsgBox window cannot be formatted (to my knowledge) i.e. to
justify numbers on consecutive lines regardless of font and preceding text.

Does anybody know of another method of popping up a "properly formatted"
window to the user with just an OK / Close button as an option?

Thanks in advance
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Formatted popup window


Can you post what you want in the message box? You MIGHT be able to use
message box for this. I've had some success with formatting text within
them.


--
Excelenator


------------------------------------------------------------------------
Excelenator's Profile: http://www.excelforum.com/member.php...o&userid=36768
View this thread: http://www.excelforum.com/showthread...hreadid=565648

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 106
Default Formatted popup window

Try this :

Total Hours worked = 999.9
------------------------------------
Normal Hours = 999.9
Overtime = 999.9
Saturdays = 999.9
Sundays = 999.9

This is a popup window to display the analysis of the total hours worked for
a given person. If I could use the Courier font which is a fixed width font,
I could get away with it. But a proportional font messes things up and
nothing can be aligned from one line to the next.

I am anxious to see what you can do with it!!
Thanks in advance for your time.

"Excelenator" wrote:


Can you post what you want in the message box? You MIGHT be able to use
message box for this. I've had some success with formatting text within
them.


--
Excelenator


------------------------------------------------------------------------
Excelenator's Profile: http://www.excelforum.com/member.php...o&userid=36768
View this thread: http://www.excelforum.com/showthread...hreadid=565648


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Formatted popup window


How about this? The only issue might be that the numbers will appear to
be aligned to the left instead of the right as you might expect them to
be if they change from what I am assuming is mock up data that you
supplied.


Sub MsgBxTest()

MsgBox "Total Hours Worked" & vbTab & "=" & vbTab & "999.99" & vbCrLf
_
& "----------------------------------------------------" & vbCrLf
_
& "Normal Hours" & vbTab & vbTab & "=" & vbTab & "999.99" & vbCrLf
_
& "Overtime Hours" & vbTab & vbTab & "=" & vbTab & "999.99" &
vbCrLf _
& "Saturday Hours" & vbTab & vbTab & "=" & vbTab & "999.99" &
vbCrLf _
& "Sunday Hours" & vbTab & vbTab & "=" & vbTab & "999.99"



End Sub


--
Excelenator


------------------------------------------------------------------------
Excelenator's Profile: http://www.excelforum.com/member.php...o&userid=36768
View this thread: http://www.excelforum.com/showthread...hreadid=565648

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
Popup window (plz replay) Tom Ogilvy Excel Programming 0 August 28th 03 04:45 AM
Popup window (plz replay) sd Excel Programming 2 August 28th 03 04:45 AM
Popup window (plz replay) Tom Ogilvy Excel Programming 0 August 27th 03 02:51 PM
popup message window Tom Ogilvy Excel Programming 0 August 26th 03 01:02 PM
Popup message window with name shah[_2_] Excel Programming 2 August 26th 03 02:40 AM


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