Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Dimmer
 
Posts: n/a
Default Hyperlink added to an activex control button

Hi guys,
maybe a very basic question, but still: How do I make a button open a
hyperlink in the browser when someone clicks on it?

Thanks!
  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

You could use some code--just double click on that button in design mode. Your
code will look something like:

Option Explicit
Private Sub CommandButton1_Click()
ThisWorkbook.FollowHyperlink "http://www.microsoft.com"
End Sub

ps. If you use buttons from the forms toolbar, you can right click on them and
choose assign hyperlink.

Dimmer wrote:

Hi guys,
maybe a very basic question, but still: How do I make a button open a
hyperlink in the browser when someone clicks on it?

Thanks!


--

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
Can't delete or edit control button Steve Excel Discussion (Misc queries) 1 July 15th 05 08:39 PM
Tab to an ActiveX control? Karin Excel Discussion (Misc queries) 0 July 6th 05 05:08 AM
How do I execute command from button or hyperlink? rerhart Excel Discussion (Misc queries) 1 February 18th 05 10:41 PM
assign a macro to a control button ewan72 Excel Discussion (Misc queries) 1 December 3rd 04 03:04 PM
Embed command button from the control toolbox doesnt work guichre Excel Worksheet Functions 1 November 16th 04 03:28 AM


All times are GMT +1. The time now is 01:47 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"