Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
Hello Nuno,
Can you please specify when do yo see that error and where exactly are you using that code (macro, script)?
Regards.
BI Consultant
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:
I want to remove the word "VBScript" from the title of the window.
Regards,
Nuno
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.
BI Consultant
It worked!
Thank you.
Regards,
Nuno Maximiano