ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Opening a Hyperlink using macros (https://www.excelbanter.com/excel-programming/397736-opening-hyperlink-using-macros.html)

[email protected]

Opening a Hyperlink using macros
 
Does anyone know how to open a hyperlink without using your mouse?
I've tried a couple of macros but I can't get them to work. I am
inexperienced with Macros (especially the VBE ones) Any help would be
MUCH appreciated as it would save me a great deal of time.
Thank you,
Patrick


Tom Ogilvy

Opening a Hyperlink using macros
 
Look at the followhyperlink command.



--
regards,
Tom Ogilvy


" wrote:

Does anyone know how to open a hyperlink without using your mouse?
I've tried a couple of macros but I can't get them to work. I am
inexperienced with Macros (especially the VBE ones) Any help would be
MUCH appreciated as it would save me a great deal of time.
Thank you,
Patrick



Gary''s Student

Opening a Hyperlink using macros
 
Lets say there is a hyperlink in cell D7:
http://www.microsoft.com
then:

Sub hypergoer()
ActiveWorkbook.FollowHyperlink Address:=Range("D7").Value
End Sub

--
Gary''s Student - gsnu200745


" wrote:

Does anyone know how to open a hyperlink without using your mouse?
I've tried a couple of macros but I can't get them to work. I am
inexperienced with Macros (especially the VBE ones) Any help would be
MUCH appreciated as it would save me a great deal of time.
Thank you,
Patrick




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

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