Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default HyperLink function runs wild when unrelated column is filtered

I have a spreadsheet with a column of ~500 hyperlinks that were
created by the user defined function code below (only the real meat
shown). Workbook auto-calculation is turned ON to ensure hyperlinks
are updated when data is changed. If an unrelated column is filtered,
the spreadsheet goes into a never-ending recalculation mode.

Unrelated, Cells(jRow, jCol).Hyperlinks.Delete corrupt cell formatting

Is Application.Volatile or something similar needed?

Any help is appreciated.

Thanks.........bob

Function HyperLinkIt(Doc As String, DocType As String)
'
Dim jCaller As String
Dim jDoc As String
Dim jType As String
'
jCaller = Application.Caller.Address
'
jRow = Range(jCaller).Row
jCol = Range(jCaller).Column
'
jDoc = UCase(Doc)
jType = UCase(DocType)
'
HyperLinkIt = "*" '"select" 'jDoc
'
Cells(jRow, jCol).Hyperlinks.Delete 'For some reason this hurts
cell formatting if a hyperlink existed
'
jLink = "https://ecms.llnl.gov/ematrix/emxLogin.jsp?
mode=llnlPdfView&type=" & jType & "&name=" & jDoc
'
ActiveSheet.Hyperlinks.Add Anchor:=Cells(iRow, iCol),
Address:=jLink, TextToDisplay:=jDoc
'
End Function
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
Wild characters in function? Steven Excel Worksheet Functions 3 November 4th 09 11:24 PM
wild character in function? Greg Excel Discussion (Misc queries) 3 July 29th 07 01:38 PM
User Defined Function - actioned in unrelated WB Richard Excel Programming 5 October 6th 06 11:28 AM
wild card with if logical function b166er Excel Worksheet Functions 7 June 1st 06 09:46 PM
wild card with if logical function b166er Excel Worksheet Functions 0 June 1st 06 08:17 AM


All times are GMT +1. The time now is 07:01 PM.

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

About Us

"It's about Microsoft Excel"