Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
al al is offline
external usenet poster
 
Posts: 363
Default Hyperlink to a userform?

I have a macro that assembles a series of user workbooks from a template
library, and some cells have hyperlinks that are constructed based on user
data entries. I now have a need to give the user a choice of hyperlink from
certain cells, and my plan is to provide a userform to handle that. Is it
possible to create a hyperlink to the userform, or do I have to emulate it by
using a selection change event?
--
Al C
  #2   Report Post  
Posted to microsoft.public.excel.programming
JNW JNW is offline
external usenet poster
 
Posts: 480
Default Hyperlink to a userform?

This should work. just change cell reference to the cell that has your
hyperlink

Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink)
If Not Intersect(Target.Parent, Range("c9")) Is Nothing Then
MySub 'sub to open userform or just userform.show
End If
End Sub






"Al" wrote:

I have a macro that assembles a series of user workbooks from a template
library, and some cells have hyperlinks that are constructed based on user
data entries. I now have a need to give the user a choice of hyperlink from
certain cells, and my plan is to provide a userform to handle that. Is it
possible to create a hyperlink to the userform, or do I have to emulate it by
using a selection change event?
--
Al C

  #3   Report Post  
Posted to microsoft.public.excel.programming
al al is offline
external usenet poster
 
Posts: 363
Default Hyperlink to a userform?

Yes. That would work if I could enter the code by hand, but I need to have
the macro create the links dynamically after the user enters data, and I
can't know in advance even which cells need the multiple links. I can have
the macro set up a range and populate it with the appropriate hyperlink
names, link the controls to those names, adjust the userform so only the live
controls are accessable, and access the userform through the event handler,
but I'm looking to see if there is an easier way to get there.
--
Al C


"JNW" wrote:

This should work. just change cell reference to the cell that has your
hyperlink

Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink)
If Not Intersect(Target.Parent, Range("c9")) Is Nothing Then
MySub 'sub to open userform or just userform.show
End If
End Sub






"Al" wrote:

I have a macro that assembles a series of user workbooks from a template
library, and some cells have hyperlinks that are constructed based on user
data entries. I now have a need to give the user a choice of hyperlink from
certain cells, and my plan is to provide a userform to handle that. Is it
possible to create a hyperlink to the userform, or do I have to emulate it by
using a selection change event?
--
Al C

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hyperlink from Userform MAWII Excel Discussion (Misc queries) 2 July 12th 07 03:40 PM
Hyperlink within Textbox(UserForm) Soniya[_4_] Excel Programming 1 December 14th 05 05:14 PM
userform hyperlink question Gary Keramidas Excel Programming 1 November 13th 05 06:21 PM
QN: Webpage Hyperlink in a UserForm?? Michael Vaughan Excel Programming 1 August 30th 04 04:59 PM
Userform and Cell Email Hyperlink scain2004[_13_] Excel Programming 0 May 20th 04 03:25 AM


All times are GMT +1. The time now is 04:16 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"