Solved

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

Posted on 2004-08-12
3
283 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
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Add a task in Outlook from access 11 41
Hide vba in gp 7 97
How to make an ADE file by code? 11 87
Publisher:   Unknown     VB.exe Application 1 21
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…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

825 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