Hyperlink - custom view

A

Annette

Is it possible that when a user clicks on a hyperlink, the custom view
appears? And how would I write that into a macro?

Annette
 
J

Jim Cone

Annette,
You could link the Hyperlink back to itself and then use the
FollowHyperlink event to show the view.
Something like the following should work...
'--
Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink)
'hyperlink cell
If Target.Range.Address = "$B$5" Then
ThisWorkbook.CustomViews("Current Inventory").Show
End If
End Sub
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)




"Annette"
wrote in message
Is it possible that when a user clicks on a hyperlink, the custom view
appears? And how would I write that into a macro?
Annette
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top