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

Excel 2k

Hi

I have the following simple msgbox command.

MsgBox "Updated spreadsheet!" & (Chr(13) & Chr(10)) &
strName & ". Absent reason - " & strReason & " from " &
JBStartDate & " to " & JBEndDate, vbOKOnly, Updated

What I'm tring to do is centre the text within the msgbox.
The default is left aligned. Can anyone help?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default MsgBox commands

Hi
AFAIK you can't center text in a messagebox. so you'll
have to create your own userform if you need this

-----Original Message-----
Excel 2k

Hi

I have the following simple msgbox command.

MsgBox "Updated spreadsheet!" & (Chr(13) & Chr(10)) &
strName & ". Absent reason - " & strReason & " from " &
JBStartDate & " to " & JBEndDate, vbOKOnly, Updated

What I'm tring to do is centre the text within the

msgbox.
The default is left aligned. Can anyone help?
.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 134
Default MsgBox commands

I solved this problem by using leading spaces i.e.
"Update spreadsheet! to " Updated spreadsheet!"
You may have to play with it to get it like you want but
it works.

-----Original Message-----
Excel 2k

Hi

I have the following simple msgbox command.

MsgBox "Updated spreadsheet!" & (Chr(13) & Chr(10)) &
strName & ". Absent reason - " & strReason & " from " &
JBStartDate & " to " & JBEndDate, vbOKOnly, Updated

What I'm tring to do is centre the text within the

msgbox.
The default is left aligned. Can anyone help?
.

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
VBA commands Love2Learn Excel Discussion (Misc queries) 4 January 28th 09 07:31 AM
IF commands ryan Excel Worksheet Functions 1 August 17th 07 02:10 AM
DOS commands Taikoubo Excel Discussion (Misc queries) 0 March 30th 05 03:37 AM
Help with "if-then"/look up commands or what ever you think is best. [email protected] Excel Discussion (Misc queries) 2 March 16th 05 08:25 PM
MS DOS Commands nath Excel Programming 1 June 9th 04 02:22 PM


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