ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Opening a webpage from a vba macro in excel (https://www.excelbanter.com/excel-programming/274336-opening-webpage-vba-macro-excel.html)

Irishmaninusa

Opening a webpage from a vba macro in excel
 
Hi Everyone,

Is it possible to open a website from within a macro in Excel....if so...how
would you do that?

And please...don't laugh.....:)






John Eppley

Opening a webpage from a vba macro in excel
 
I have been using the following routine for several months. The sub routine
was found on this newsgroup, and I do not know who deserves the credit.


Sub OpenMyChoiceWebSite()
ThisWorkbook.FollowHyperlink Address:="https://www.MyChoice.com/"
End Sub

Replace MyChoice with your choice.

Hope this helps.

John Eppley




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

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