Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 340
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 163
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 163
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Linking a Document in a Messagebox

Thank for your Help.

Helmut, I used the code from your second post and it works fine.



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linking to word document bluelotus Links and Linking in Excel 0 July 22nd 08 07:17 PM
Linking an Excel 2003 document copied to a Word 2003 document jfg Excel Discussion (Misc queries) 7 July 26th 07 10:16 PM
Linking inside a document Kpercy Excel Discussion (Misc queries) 1 May 2nd 07 08:50 AM
Linking worksheets using a master document jo Excel Discussion (Misc queries) 0 January 24th 06 11:41 PM
Linking Embedded Document Fields mae1778 Excel Discussion (Misc queries) 0 August 19th 05 04:59 PM


All times are GMT +1. The time now is 04:02 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"