Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Clickable URL in MSGBOX()

Status
Not open for further replies.

SWarrior

MIS
Dec 19, 2003
111
US
I am error trapping for HELP on a vbscript. If the error occurs, then I want the user to be able to CLICK on a URL within the message box. Kinda like this below.
[tt]
+------------------------------+
: Error occured. If you want :
: help, click the link below. :
: :
: +----------+ :
: : O K : :
: +----------+ :
+------------------------------+
[/tt]
I know... WHY in the HECK would anyone want to have a clickable URL inside a message box ?? Well, basically, I want to do this one of two ways. Either have a hyperlink that is clickable within the message box, OR, I'd even be happy with if they click OK that the user would be directed TO that URL. Either way will make me happy right now. The clickable link would be better, but I'll take ANY solution at this time.

-SWarrior
 
Well, sometimes you have to dig DEEP, and look at some OLD code that you wrote yourself and be satisfied with SOMETHING that works, instead of dreaming about getting something to work in a really COOL way. I'm gonna try to give myself a STAR on this one!! ahahahahahha

Code:
If MsgBox("Error occured.  If you want  " & vbCrLf &_
    "help, click YES, and you will" & vbCrLf &_
    "be directed to the following " & vbCrLf &_
    "URL, otherwise click NO.     " & vbCrLf &_
    "    [URL unfurl="true"]http://www.help.com[/URL]      " & vbCrLf &_
    "", vbYesNo + vbDefaultButton1 + vbQuestion + VbMsgBoxSetForeground, "Help Box") = vbYes Then
    wshShell.run("iexplore [URL unfurl="true"]http://www.help.com/")[/URL]
  Else
    msgbox("You did not want help")
end if

If anyone can figure out how to actually get a clickable link into the message box, that would be FANTASTIC!!!

-SWarrior
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top