Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Follow hyperlink to show form

I have the following code to add hyperlink to a cell.

Range("A" & i).Hyperlinks.Add Anchor:=Cells(i, 1), _
Address:="", TextToDisplay:=rs("RuleID").Value

Then in that same worksheet, i have the following code to show the form to
modify that rule.

Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink)

frmRuleModify.cmbRuleId.Value = Target.Range.Value
frmRuleModify.Show

End Sub

The problem is that, this worksheet which contains a set of rules found
based on specified criteria get deleted and recreated, each time a query is
done. Is there a way I can put the above code to follow hyperlink in a
module, so it does not get deleted each time?

Thanks.
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.Follow question Leo Excel Programming 0 June 3rd 07 06:28 AM
follow hyperlink? JethroUK© New Users to Excel 0 April 5th 06 09:55 PM
follow hyperlink? JethroUK© Excel Worksheet Functions 0 April 5th 06 09:55 PM
follow hyperlink? JethroUK© Excel Programming 0 April 5th 06 09:55 PM
Follow a hyperlink James W.[_2_] Excel Programming 2 December 4th 04 12:41 AM


All times are GMT +1. The time now is 09:31 AM.

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"