Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 18
Default change part of hyperlink formula

I have a spreadsheet with several hyperlinks and would lile to be able to
search each hyperlink in turn and replace part of the text with another, a
sort of edit replace, (which doesn't edit the hyperlink formula)
I would like to replace s:\ with x:\it\
Ideally I would like a popup box to ask for the replace and then the with.
This would help with several other files, since we changed our folder
structure.

Also some were put in with insert hyperlink and some were put in with insert
formula hyperlink

Any advice would be extremely appreciated

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default change part of hyperlink formula

Find/replace should work just fine for =HYPERLINK() formulas. Starting with:

=HYPERLINK("file:///s:\Documents and
Settings\User\Desktop\Book2.xls#Sheet2!B9")


and replacing:
s:\
with:
x:\it\

results in:

=HYPERLINK("file:///x:\it\Documents and
Settings\User\Desktop\Book2.xls#Sheet2!B9")

--
Gary''s Student - gsnu200817


"Big Mac" wrote:

I have a spreadsheet with several hyperlinks and would lile to be able to
search each hyperlink in turn and replace part of the text with another, a
sort of edit replace, (which doesn't edit the hyperlink formula)
I would like to replace s:\ with x:\it\
Ideally I would like a popup box to ask for the replace and then the with.
This would help with several other files, since we changed our folder
structure.

Also some were put in with insert hyperlink and some were put in with insert
formula hyperlink

Any advice would be extremely appreciated

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 18
Default change part of hyperlink formula

Thanks but I haven't used the hyperlink formula. instead my colleagues have
used the hyperlink button on the toolbar. This creates a hyperlink like in
Word.

To change this you have to use the Edit Hyperlink process. When you use edit
and replace it only changes the visible part of the text "Text to display"
and doesn't change the underlying hyperlink but I want to be able to search
the document for this type of hyperlink and then change the path as there are
thousands of entries like this

Ay Ideas?

"Gary''s Student" wrote:

Find/replace should work just fine for =HYPERLINK() formulas. Starting with:

=HYPERLINK("file:///s:\Documents and
Settings\User\Desktop\Book2.xls#Sheet2!B9")


and replacing:
s:\
with:
x:\it\

results in:

=HYPERLINK("file:///x:\it\Documents and
Settings\User\Desktop\Book2.xls#Sheet2!B9")

--
Gary''s Student - gsnu200817


"Big Mac" wrote:

I have a spreadsheet with several hyperlinks and would lile to be able to
search each hyperlink in turn and replace part of the text with another, a
sort of edit replace, (which doesn't edit the hyperlink formula)
I would like to replace s:\ with x:\it\
Ideally I would like a popup box to ask for the replace and then the with.
This would help with several other files, since we changed our folder
structure.

Also some were put in with insert hyperlink and some were put in with insert
formula hyperlink

Any advice would be extremely appreciated

Thanks

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default change part of hyperlink formula

You could use the code from David McRitchie's site:

http://www.mvps.org/dmcritchie/excel/buildtoc.htm
look for:
Fix Hyperlinks (#FixHyperlinks)

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

Big Mac wrote:

Thanks but I haven't used the hyperlink formula. instead my colleagues have
used the hyperlink button on the toolbar. This creates a hyperlink like in
Word.

To change this you have to use the Edit Hyperlink process. When you use edit
and replace it only changes the visible part of the text "Text to display"
and doesn't change the underlying hyperlink but I want to be able to search
the document for this type of hyperlink and then change the path as there are
thousands of entries like this

Ay Ideas?

"Gary''s Student" wrote:

Find/replace should work just fine for =HYPERLINK() formulas. Starting with:

=HYPERLINK("file:///s:\Documents and
Settings\User\Desktop\Book2.xls#Sheet2!B9")


and replacing:
s:\
with:
x:\it\

results in:

=HYPERLINK("file:///x:\it\Documents and
Settings\User\Desktop\Book2.xls#Sheet2!B9")

--
Gary''s Student - gsnu200817


"Big Mac" wrote:

I have a spreadsheet with several hyperlinks and would lile to be able to
search each hyperlink in turn and replace part of the text with another, a
sort of edit replace, (which doesn't edit the hyperlink formula)
I would like to replace s:\ with x:\it\
Ideally I would like a popup box to ask for the replace and then the with.
This would help with several other files, since we changed our folder
structure.

Also some were put in with insert hyperlink and some were put in with insert
formula hyperlink

Any advice would be extremely appreciated

Thanks


--

Dave Peterson
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
change color of all cells with formula or are part of a formula [email protected] Excel Discussion (Misc queries) 19 January 28th 08 01:21 AM
Create a Hyperlink as part of a macro Nahraine New Users to Excel 1 March 7th 07 04:37 PM
Change part of formula [email protected] Excel Worksheet Functions 2 October 8th 06 08:50 PM
Is there a function to extract the URL part of a hyperlink in another cell? Rufus V. Smith Excel Worksheet Functions 4 March 28th 06 06:39 PM
Keeping one part of a formula same, but change other cell ref? kwelp Excel Discussion (Misc queries) 3 May 17th 05 10:00 PM


All times are GMT +1. The time now is 06:02 AM.

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"