Solved

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

Posted on 2004-08-12
3
292 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 June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
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…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

724 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