+ Reply to Thread
Results 1 to 21 of 21

Replace in Hyperlinks not working

  1. #1
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    4,066

    Replace in Hyperlinks not working

    I have a sheet containing about 100 hyperlinks, and for all of them the filepath has changed (IT change). The only part that changed is string "10011". Now it's "10041".

    I'm trying a "Replace All" for all of my hyperlinks as shown at https://www.extendoffice.com/documen...hyperlink.html and https://trumpexcel.com/find-hyperlinks-in-excel/.

    These were my second choices. My first was to use my "Replace Hyperlinks" macro, which hit an "Out of Memory" error.
    The manual methods at the two links resulted in "Not Found", even though I copied the string out of a hyperlink to make sure there was no weirdism in it.

    Any idea why Find and Replace wouldn't work?
    I know I'm not stupid, but I suspect I'm a lot stupider than I think I am

  2. #2
    Valued Forum Contributor PeteABC123's Avatar
    Join Date
    09-21-2012
    Location
    Chicago, IL
    MS-Off Ver
    MS Office 365 ver 2202
    Posts
    1,104

    Re: Replace in Hyperlinks not working

    In the options box, try changing "look in" to "values", or change it to "formulas" and see if it has any effect. Try both, but you've likely tried that, but maybe you haven't.

    Pete

    Hook'em Horns!
    Last edited by PeteABC123; 10-04-2021 at 12:43 PM.

  3. #3
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    4,066

    Re: Replace in Hyperlinks not working

    Thanks for trying, but no joy there either. Still not found.

  4. #4
    Valued Forum Contributor PeteABC123's Avatar
    Join Date
    09-21-2012
    Location
    Chicago, IL
    MS-Off Ver
    MS Office 365 ver 2202
    Posts
    1,104

    Re: Replace in Hyperlinks not working

    Any chance for a sanitized example in a spreadsheet?

    Thanks.

  5. #5
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    4,066

    Re: Replace in Hyperlinks not working

    Here you go.
    Attached Files Attached Files

  6. #6
    Valued Forum Contributor PeteABC123's Avatar
    Join Date
    09-21-2012
    Location
    Chicago, IL
    MS-Off Ver
    MS Office 365 ver 2202
    Posts
    1,104

    Re: Replace in Hyperlinks not working

    hhmmm. . .

    Pete
    Last edited by PeteABC123; 10-04-2021 at 02:06 PM.

  7. #7
    Valued Forum Contributor
    Join Date
    02-14-2019
    Location
    Turkiye
    MS-Off Ver
    2010 - 64 Bit on Windows-11 (24 H2) 64 Bit
    Posts
    1,187

    Re: Replace in Hyperlinks not working

    Can you try this;

    Please Login or Register  to view this content.

  8. #8
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    4,066

    Re: Replace in Hyperlinks not working

    Out of Memory

  9. #9
    Valued Forum Contributor
    Join Date
    02-14-2019
    Location
    Turkiye
    MS-Off Ver
    2010 - 64 Bit on Windows-11 (24 H2) 64 Bit
    Posts
    1,187

    Re: Replace in Hyperlinks not working

    It works with your sample file on my end....

  10. #10
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    4,066

    Re: Replace in Hyperlinks not working

    yep, also works with my sample file, but not my original file.

  11. #11
    Valued Forum Contributor
    Join Date
    02-14-2019
    Location
    Turkiye
    MS-Off Ver
    2010 - 64 Bit on Windows-11 (24 H2) 64 Bit
    Posts
    1,187

    Re: Replace in Hyperlinks not working

    Sorry, without seeing the original file i cannot say anything....

  12. #12
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    4,066

    Re: Replace in Hyperlinks not working

    Too big to post. Guess I go the manual route...

  13. #13
    Valued Forum Contributor
    Join Date
    02-14-2019
    Location
    Turkiye
    MS-Off Ver
    2010 - 64 Bit on Windows-11 (24 H2) 64 Bit
    Posts
    1,187

    Re: Replace in Hyperlinks not working

    Try changing;

    Please Login or Register  to view this content.
    to;

    Please Login or Register  to view this content.

  14. #14
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    4,066

    Re: Replace in Hyperlinks not working

    No real difference. Still failing at the "replace" line, "Out of Memory".

    However, I have noticed on my original sheet, SOME links were changed (maybe 1/3rd), the rest weren't.

  15. #15
    Valued Forum Contributor
    Join Date
    02-14-2019
    Location
    Turkiye
    MS-Off Ver
    2010 - 64 Bit on Windows-11 (24 H2) 64 Bit
    Posts
    1,187

    Re: Replace in Hyperlinks not working

    How many links do you have, in total ?

  16. #16
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    4,066

    Re: Replace in Hyperlinks not working

    Added "On error" code, and now it appears to have worked. I went back to my original workbook, last saved version (before I started changing any of them), ran the macro and all were changed. Still don't know what the hiccup was, but I'm good at this moment.
    Please Login or Register  to view this content.

  17. #17
    Valued Forum Contributor
    Join Date
    02-14-2019
    Location
    Turkiye
    MS-Off Ver
    2010 - 64 Bit on Windows-11 (24 H2) 64 Bit
    Posts
    1,187

    Re: Replace in Hyperlinks not working

    But probably you will need to know which cells produced the error.

    So, the following code will insert the text "Error" near to the cells where an error occured...

    Please Login or Register  to view this content.
    Last edited by Haluk; 10-04-2021 at 04:20 PM.

  18. #18
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    4,066

    Re: Replace in Hyperlinks not working

    Well THAT was fun! It printed "Error" next to every single cell containing a hyperlink. But it DID change the hyperlinks!

  19. #19
    Valued Forum Contributor
    Join Date
    02-14-2019
    Location
    Turkiye
    MS-Off Ver
    2010 - 64 Bit on Windows-11 (24 H2) 64 Bit
    Posts
    1,187

    Re: Replace in Hyperlinks not working

    It was my bad, can you try this;

    Please Login or Register  to view this content.

  20. #20
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    4,066

    Re: Replace in Hyperlinks not working

    Better: 26 errors out of 70 links. Some of those were links to websites, so I'd expect it couldn't find the "10011", so would error. But of those containing "10011", ALL were changed, but about half had Error next to them.

    Remember, this started with Find and Replace, where it could locate NO instances of "10011".

    Examples:
    Changed, Error next to:
    \\share10041\Accounting\Z4116\FY22 4116 Tracker.xlsx
    \\share10041\Federal_Funds\_FEDERAL FUNDS DIVISION\IV-E Billings\Copies\Completed 4116s
    \\share10041\Budget\SOBUDGET\Active Position Reports\2022\FY 22 Active Positions - Current.xlsx

    Changed, no error
    \\SHARE10041\Budget\SOBUDGET\1819LAR\Exceptional Item Template & Info\Source Docs\Archive\18_19_85th_Budget_Cost_Estimate_Template (Rev 8-17-16).xlsx
    \\SHARE10041\Budget\SOBUDGET\FORMS\Leave Request Form.doc
    \\SHARE10041\Budget\SOBUDGET\BCMs

  21. #21
    Registered User
    Join Date
    09-23-2021
    Location
    New York
    MS-Off Ver
    2016
    Posts
    7

    Re: Replace in Hyperlinks not working

    In Excel, find all hyperlinks that are linked to a specific text.
    Go to Home –> Editing –> Find & Select –> Delete –> Delete –> Delete –> Delete –> Delete –> Replace it with...
    Click the Options button on the Replace tab of the Find and Replace dialogue box.
    Enter 'Company A' in the Find what field.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Replace hyperlinks
    By academica in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-29-2018, 10:32 AM
  2. [SOLVED] Find/Replace a series of hyperlinks in a workbook
    By mellenbal in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-03-2014, 05:15 PM
  3. Replace multiple hyperlinks
    By syswiz88 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-31-2013, 05:50 AM
  4. Find and Replace with hyperlinks
    By sundayss in forum Excel General
    Replies: 0
    Last Post: 09-08-2011, 02:53 AM
  5. find/replace text in multiple hyperlinks
    By notorious22 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-22-2007, 06:33 PM
  6. Is it possible to use 'Replace All' function in hyperlinks
    By prabhat_79_in in forum Excel General
    Replies: 1
    Last Post: 08-04-2006, 02:15 PM
  7. Can I use Find and Replace all with Hyperlinks?
    By HandsOnManager in forum Excel General
    Replies: 0
    Last Post: 02-15-2005, 06:45 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1