ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Create a macro to Open Hypenlinks (https://www.excelbanter.com/excel-programming/340538-create-macro-open-hypenlinks.html)

maperalia

Create a macro to Open Hypenlinks
 
How can I create a macro to assign and open a hypenlinks?

Thanks.
Maperalia

Cush

Create a macro to Open Hypenlinks
 
From the vba help file:
The following example activates the hyperlink for shape one.

Worksheets(1).Shapes(1).Hyperlink.Follow NewWindow:=True

A range or worksheet can have more than one hyperlink. Use
Hyperlinks(index), where index is the hyperlink number, to return a single
Hyperlink object. The following example activates hyperlink two in the range
A1:B2.

Worksheets(1).Range("A1:B2").Hyperlinks(2).Follow


"maperalia" wrote:

How can I create a macro to assign and open a hypenlinks?

Thanks.
Maperalia



All times are GMT +1. The time now is 10:52 PM.

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