Hyperlink Cell to Shape on seperate worksheets
I am struggling with this.
Here is my attempt to generate hyperlinks from a Cell (Sheet1) to a Shape (Sheet5). Code:
Option Explicit doesnt seem to have some type of "location" holder when the shape is on top of another shape (a large image), just a name and the name doesnt aid in creating a hyperlink or the hyperlink code is simply wrong. Any hints, tips or examples are welcome. Cross posted at: (with file attachment) http://www.excelforum.com/excel-prog...o-a-shape.html -- Regards Rick |
Hyperlink Cell to Shape on seperate worksheets
You can accomplish this indirectly. Set the hyperlink to some cell, say B9,
on Sheet5. Then in Sheet5 include the following Event macro: Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Intersect(Target, Range("B9")) Is Nothing Then Exit Sub Call PickShape End Sub and in a standard module something like: Sub PickShape() ActiveSheet.Shapes(1).Select End Sub Here is the scenario: 1. click on the hyperlink takes us to Sheet5, cell B9 2. getting to cell B9 activates the event macro whick takes us to the shape. Just remember that the event macro must go the the worksheet code area. -- Gary''s Student - gsnu201001 "Rick S." wrote: I am struggling with this. Here is my attempt to generate hyperlinks from a Cell (Sheet1) to a Shape (Sheet5). Code:
Option Explicit The above does create a hyperlink, allthough it is invalid. The "Shape" doesnt seem to have some type of "location" holder when the shape is on top of another shape (a large image), just a name and the name doesnt aid in creating a hyperlink or the hyperlink code is simply wrong. Any hints, tips or examples are welcome. Cross posted at: (with file attachment) http://www.excelforum.com/excel-prog...o-a-shape.html -- Regards Rick |
Hyperlink Cell to Shape on seperate worksheets
Thank you Gary, I will give this a go.
-- Regards Rick "Gary''s Student" wrote: You can accomplish this indirectly. Set the hyperlink to some cell, say B9, on Sheet5. Then in Sheet5 include the following Event macro: Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Intersect(Target, Range("B9")) Is Nothing Then Exit Sub Call PickShape End Sub and in a standard module something like: Sub PickShape() ActiveSheet.Shapes(1).Select End Sub Here is the scenario: 1. click on the hyperlink takes us to Sheet5, cell B9 2. getting to cell B9 activates the event macro whick takes us to the shape. Just remember that the event macro must go the the worksheet code area. -- Gary''s Student - gsnu201001 "Rick S." wrote: I am struggling with this. Here is my attempt to generate hyperlinks from a Cell (Sheet1) to a Shape (Sheet5). Code:
Option Explicit The above does create a hyperlink, allthough it is invalid. The "Shape" doesnt seem to have some type of "location" holder when the shape is on top of another shape (a large image), just a name and the name doesnt aid in creating a hyperlink or the hyperlink code is simply wrong. Any hints, tips or examples are welcome. Cross posted at: (with file attachment) http://www.excelforum.com/excel-prog...o-a-shape.html -- Regards Rick |
Hyperlink Cell to Shape on seperate worksheets
Your suggestion worked out.
Thanks. -- Regards Rick "Gary''s Student" wrote: You can accomplish this indirectly. Set the hyperlink to some cell, say B9, on Sheet5. Then in Sheet5 include the following Event macro: Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Intersect(Target, Range("B9")) Is Nothing Then Exit Sub Call PickShape End Sub and in a standard module something like: Sub PickShape() ActiveSheet.Shapes(1).Select End Sub Here is the scenario: 1. click on the hyperlink takes us to Sheet5, cell B9 2. getting to cell B9 activates the event macro whick takes us to the shape. Just remember that the event macro must go the the worksheet code area. -- Gary''s Student - gsnu201001 "Rick S." wrote: I am struggling with this. Here is my attempt to generate hyperlinks from a Cell (Sheet1) to a Shape (Sheet5). Code:
Option Explicit The above does create a hyperlink, allthough it is invalid. The "Shape" doesnt seem to have some type of "location" holder when the shape is on top of another shape (a large image), just a name and the name doesnt aid in creating a hyperlink or the hyperlink code is simply wrong. Any hints, tips or examples are welcome. Cross posted at: (with file attachment) http://www.excelforum.com/excel-prog...o-a-shape.html -- Regards Rick |
All times are GMT +1. The time now is 05:52 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com