Editing hyperlink with find and replace

G

Guest

When I use find and replase to edit multiple hyperlinks in a Excel sheet
(linking to another workbook and sheet1) to link to sheet2 instead, the
hyperlink changes on screen but proforms exactly the same (links to sheet1).
How do I get to do what I want?
 
J

Jim Rech

I'm not exactly clear on what the problem is but, fwiw, the usual way to
change links is via Edit, Links, Change Source.

--
Jim
| When I use find and replase to edit multiple hyperlinks in a Excel sheet
| (linking to another workbook and sheet1) to link to sheet2 instead, the
| hyperlink changes on screen but proforms exactly the same (links to
sheet1).
| How do I get to do what I want?
 
D

Dave Peterson

I'm guessing that you used Insert|Hyperlink to create the hyperlink.

Then you changed the value in the cell (the stuff you can see), but you didn't
change the address of the hyperlink via insert|hyperlink.

David McRitchie has some code that you can use to change the hyperlinks:

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

====
You may want to start using the =hyperlink() worksheet formula. Then you'll be
able to do simple Edit|Replaces to point at a new location.

=HYPERLINK("C:\My Documents\Excel\book2.xls#sheet1!c99","click me")
could be changed to:
=HYPERLINK("C:\My Documents\Excel\book2.xls#sheet2!c99","click me")
or if you need apostrophes surrounding the worksheet name:
=HYPERLINK("C:\My Documents\Excel\book2.xls#'sheet 2'!c99","click me")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top