Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Linking a Document in a Messagebox
Hi,
I would like to write a link to a document in a message box. Instead of writing MsgBox "For more detailed help go to http://www.help.com/" I would like to have a link in the message box that points to "http:// www.help.com/" Is this possible and how does it work? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Linking a Document in a Messagebox
Its not possible within a message box. Use a userform with a button on it
that says "go to ___" and code that takes one to the page when the button is clicked. If you need such code, just post for it. Bob Flanagan Macro Systems http://www.add-ins.com Productivity add-ins and downloadable books on VB macros for Excel wrote in message ups.com... Hi, I would like to write a link to a document in a message box. Instead of writing MsgBox "For more detailed help go to http://www.help.com/" I would like to have a link in the message box that points to "http:// www.help.com/" Is this possible and how does it work? |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Linking a Document in a Messagebox
Hmm...
Sub test() Dim l As Long Dim v As Variant l = MsgBox("see http://www.help.com/ for help", 3) If l = 6 Then v = Shell("c:\program files\internet explorer\iexplore.exe http://www.help.com/", vbMaximizedFocus) End If End Sub Beware of linebreakes by the newsreader. Though I'd like to know, how to use a running instance of iExplore, if there is one. Must be possible. -- Greetings from Bavaria, Germany Helmut Weber, MVP WordVBA Win XP, Office 2003 "red.sys" & Chr$(64) & "t-online.de" |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Linking a Document in a Messagebox
Without shell something like:
Dim IE As New InternetExplorer With IE .Visible = True .Navigate ("http://www.help.com/") End With Reference to Microsoft Internet Controls assumed. -- Greetings from Bavaria, Germany Helmut Weber, MVP WordVBA Win XP, Office 2003 "red.sys" & Chr$(64) & "t-online.de" |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
Linking a Document in a Messagebox
Thank for your Help.
Helmut, I used the code from your second post and it works fine. |
#6
Posted to microsoft.public.excel.programming
|
|||
|
|||
Linking a Document in a Messagebox
One mo
Option Explicit Sub testme() Dim resp As Long resp = MsgBox(Prompt:="whateveryouwant", Buttons:=vbOKCancel) If resp = vbOK Then ThisWorkbook.FollowHyperlink "http:\\www.help.com" End If End Sub wrote: Hi, I would like to write a link to a document in a message box. Instead of writing MsgBox "For more detailed help go to http://www.help.com/" I would like to have a link in the message box that points to "http:// www.help.com/" Is this possible and how does it work? -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Linking to word document | Links and Linking in Excel | |||
Linking an Excel 2003 document copied to a Word 2003 document | Excel Discussion (Misc queries) | |||
Linking inside a document | Excel Discussion (Misc queries) | |||
Linking worksheets using a master document | Excel Discussion (Misc queries) | |||
Linking Embedded Document Fields | Excel Discussion (Misc queries) |