PC Review


Reply
Thread Tools Rate Thread

how can I activate a hyperlink address from the vbOKOnly button

 
 
pete
Guest
Posts: n/a
 
      18th Apr 2010
I have created the message box and when the user click the OK button I want a
hyperlink to activate. Anyone know the code for this after the vbOKOnly
Thanks
 
Reply With Quote
 
 
 
 
fredg
Guest
Posts: n/a
 
      18th Apr 2010
On Sun, 18 Apr 2010 08:03:01 -0700, pete wrote:

> I have created the message box and when the user click the OK button I want a
> hyperlink to activate. Anyone know the code for this after the vbOKOnly
> Thanks


If the site address is fixed and known:
Application.FollowHyperlink "http://www.thesite.com"

If the site address is a variable string value displayed in a control
on the form:
Application.FollowHyperlink Me![ControlName]
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
 
Reply With Quote
 
Mark Andrews
Guest
Posts: n/a
 
      19th Apr 2010
I use this code:
Public Sub OpenWebPage(url As String)

Dim browser As Variant

Set browser = CreateObject("InternetExplorer.Application")
browser.Navigate (url)
browser.StatusBar = False
browser.Toolbar = False
browser.Visible = True
browser.Resizable = True
browser.AddressBar = True


End Sub

I found application.followhyperlink sometimes locks up the computer.
Most of the time it works fine.

HTH,

--
Mark Andrews
RPT Software
http://www.rptsoftware.com
http://www.donationmanagementsoftware.com

"fredg" <(E-Mail Removed)> wrote in message
news:1gfwwix5akbki$.(E-Mail Removed)...
> On Sun, 18 Apr 2010 08:03:01 -0700, pete wrote:
>
>> I have created the message box and when the user click the OK button I
>> want a
>> hyperlink to activate. Anyone know the code for this after the vbOKOnly
>> Thanks

>
> If the site address is fixed and known:
> Application.FollowHyperlink "http://www.thesite.com"
>
> If the site address is a variable string value displayed in a control
> on the form:
> Application.FollowHyperlink Me![ControlName]
> --
> Fred
> Please respond only to this newsgroup.
> I do not reply to personal e-mail


 
Reply With Quote
 
pete
Guest
Posts: n/a
 
      19th Apr 2010
Thanks to you both. Very helpful should impress my boss with the new database
I'm building.
Many thanks indeed
pete

"pete" wrote:

> I have created the message box and when the user click the OK button I want a
> hyperlink to activate. Anyone know the code for this after the vbOKOnly
> Thanks

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Create Command button to activate hyperlink ? Buford Microsoft Access Getting Started 4 8th Jun 2008 05:30 PM
Button to increment by 1 and then activate hyperlink =?Utf-8?B?UmFzdGFtb24=?= Microsoft Word Document Management 1 25th May 2006 10:59 PM
Need to Activate PPS with Hyperlink =?Utf-8?B?c2hlcA==?= Microsoft Powerpoint 3 4th May 2006 08:42 PM
Using a web hyperlink to activate a pps =?Utf-8?B?Y2FsaWNvYnU=?= Microsoft Powerpoint 7 2nd Dec 2005 01:49 PM
Action after you click the 'vbOKOnly' button Tony Bender Microsoft Excel Misc 1 30th Sep 2004 04:53 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:06 PM.