Solved

how to create VBScript message box without the "VBSscript" name?

Posted on 2004-08-12
3
291 Views
Last Modified: 2010-05-18
1. How to create VBScript message box without the additional name "VBSscript" which appears before message box title?(to make same as VBA message box, which have no additional name before message box title).

for example, that message box show this "VBScript:" name before Title:
<HTML>
<BODY>

<SCRIPT LANGUAGE="VBSCRIPT">
<!--
Dim Answer
Sub Window_OnLoad()
  Answer = MsgBox ("Message text", 64, "Title")
End Sub
//-->
</SCRIPT>

</BODY>
</HTML>

2.How to separate long text (Line break) in message box that the message looked more attractively?
Does it possible also add paragraphs?

Thanks
0
Comment
Question by:Sirocco
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 22

Assisted Solution

by:DarkoLord
DarkoLord earned 60 total points
ID: 11782266
For the first question think you cant get rid of that "VBScript:" prefix in the tits

As for the second question, you can break the message using vbCrLf constand:

MsgBox "this is a very very" + vbCrLf + "long message, but you can still" + vbCrLf + "split it to multiple lines"

Darko
0
 
LVL 18

Accepted Solution

by:
JR2003 earned 65 total points
ID: 11782283
To add line breaks
Answer = Msgbox ("Message text"  & Chr(10) & Chr(13) & "and more text", 64, "Title")
0
 

Author Comment

by:Sirocco
ID: 11791139
It seems, this variant looks a  little more correct:

Msgbox ("Message text" + (Chr(13) & Chr(10)) +"and more text", 64, "Title")

Sirocco
0

Featured Post

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question