Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 345
Default Msgbox prompt and tabbing

I have a need to present neatly lined up columnar data in the prompt of a
message box. (I am just beginning to learn about forms)

the Tab function documentation seems to work only for print files.

I suppose I can examine the data and put in some & space(varname)
'spacers' but that's a fair amount of work and will only get pretty close.

Can anyone describe another way?

thanks.

--
Neal Z
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,119
Default Msgbox prompt and tabbing

You want to look into these constants which will allow you to format the
message box to have a columnar appearance

vbTab and vbCrLf (Carriage return line feed)

Try this to see what I mean

MsgBox "This" & vbTab & "That" & vbCrLf & "Mine" & vbTab & "Yours"

--
HTH...

Jim Thomlinson


"Neal Zimm" wrote:

I have a need to present neatly lined up columnar data in the prompt of a
message box. (I am just beginning to learn about forms)

the Tab function documentation seems to work only for print files.

I suppose I can examine the data and put in some & space(varname)
'spacers' but that's a fair amount of work and will only get pretty close.

Can anyone describe another way?

thanks.

--
Neal Z

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 345
Default Msgbox prompt and tabbing

Jim -
Works like a charm. Thanks.
It's always so simple when you "know".
Neal


"Jim Thomlinson" wrote:

You want to look into these constants which will allow you to format the
message box to have a columnar appearance

vbTab and vbCrLf (Carriage return line feed)

Try this to see what I mean

MsgBox "This" & vbTab & "That" & vbCrLf & "Mine" & vbTab & "Yours"

--
HTH...

Jim Thomlinson


"Neal Zimm" wrote:

I have a need to present neatly lined up columnar data in the prompt of a
message box. (I am just beginning to learn about forms)

the Tab function documentation seems to work only for print files.

I suppose I can examine the data and put in some & space(varname)
'spacers' but that's a fair amount of work and will only get pretty close.

Can anyone describe another way?

thanks.

--
Neal Z

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
VB - ignore a msgbox prompt Kevin Excel Discussion (Misc queries) 3 January 10th 08 11:47 AM
save prompt for user exit, but no save prompt for batch import? lpj Excel Discussion (Misc queries) 1 February 25th 06 02:08 AM
Why does tabbing from A1 take me to L1 then to W1 ConnieF Excel Worksheet Functions 2 January 26th 06 10:33 PM
MsgBox Prompt w/ No "X" to close Pablo Excel Programming 3 August 27th 04 09:00 PM
msgbox prompt when user selects data from combo box Tom Ogilvy Excel Programming 5 July 11th 03 09:24 PM


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