ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   VB Code to link to website (https://www.excelbanter.com/excel-worksheet-functions/160711-vbulletin-code-link-website.html)

EA

VB Code to link to website
 
I have a button in Excel that I am trying to assign a code so that when it is
clicked it will open a specific webpage. Is this possible? It does not have
to be in VB code, just so long as it fulfills the objective of going to
website using the button (cannot be a hyperlink text).

Thanks!

Gord Dibben

VB Code to link to website
 
Sub gotoyahoo()

ActiveWorkbook.FollowHyperlink Address:="http://www.yahoo.com", _
NewWindow:=True

End Sub



Gord Dibben MS Excel MVP

On Wed, 3 Oct 2007 11:23:05 -0700, EA wrote:

I have a button in Excel that I am trying to assign a code so that when it is
clicked it will open a specific webpage. Is this possible? It does not have
to be in VB code, just so long as it fulfills the objective of going to
website using the button (cannot be a hyperlink text).

Thanks!




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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com