Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Question
I have the following Macro:
Sub ReplaceHyperlink() ' ' Macro to change Hyperlinks ' Dim ws As Worksheet Dim hyp As Hyperlink For Each ws In ThisWorkbook.Worksheets For Each hyp In ws.Hyperlinks hyp.Address = Replace$(Expression:=hyp.Address, Find:="PATH#1", Replace:="PATH#2", Compa=vbTextCompare) Next hyp Next ws End Sub We are changing server names and I got this macro to aid users in changing some of their hyperlinks. I created it in Excel 2002 and have a user using Excel 97. They get a compiling error with the Replace$ function. Is this function only available in 2002? Please advise. Thanks for any assistance! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel 2007 Macro/VB Question DDE Question | Excel Worksheet Functions | |||
where can I see my question and answer? Yesterday I ask a question | Excel Discussion (Misc queries) | |||
Odd Question | Excel Discussion (Misc queries) | |||
Newbie Question - Subtraction Formula Question | Excel Discussion (Misc queries) | |||
The question is an excel question that I need to figure out howto do in excel. | Excel Worksheet Functions |