Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to remove "VBScript" from the title of popup Message Box?

Hi,

How to remove "VBScript" from the title of popup Message Box?

The code i have used is:

MsgBox "Hello", vbInformation, "Teste"

But the popup contain the word "VBScript":

Regards,

Nuno

13 Replies
Miguel_Angel_Baeyens

Hello Nuno,

Can you please specify when do yo see that error and where exactly are you using that code (macro, script)?

Regards.

Miguel Angel Baeyens

BI Consultant

Comex Grupo Ibérica

Not applicable
Author

Hello,

 

It is not error.

In the macro, a need to give information to user.

When write the code: (MsgBox "Hello", vbInformation, "Teste")

The user see the image:

MsgBox.jpg   

I want to remove the word "VBScript" from the title of the window.

Regards,

Nuno

Miguel_Angel_Baeyens

Hello Nuno,

As mwoolf says above, this is working as designed by Windows, and it doesn't depend on QlikView, but on your OS. And that is documented in several places, but among others, here in Microsoft (see the Remarks section).

Anyway, you can create a popup object in your system instead of using the MsgBox function, using that object you can customize buttons, text, caption and so, but it takes longer to develop, requires system access and may not run in some systems (you will have to test it).

Sub ShowPopup

          Set objShell = CreateObject("WScript.Shell")

          objShell.Popup "Text Line", 10, "Custom caption", 64

          Set objShell = nothing

End Sub

This is VBScript, so check here for further reference and options.

Hope that helps.

Miguel Angel Baeyens

BI Consultant

Comex Grupo Ibérica

Not applicable
Author

It worked!

Thank you.

Regards,

Nuno Maximiano