+ Reply to Thread
Results 1 to 2 of 2

Changing parts of hyperlinks

  1. #1
    Registered User
    Join Date
    07-06-2011
    Location
    america, usa
    MS-Off Ver
    Excel 2007
    Posts
    29

    Changing parts of hyperlinks

    I have found a way to use VBA to change certain parts of hyperlinks using the following code:
    Please Login or Register  to view this content.
    However, this will only work if I try to change anything within this section of the string: "Documents\Maps\AtlantaGeorgia\Georgia\DR". And I am needing to change the username "mackdad123" to "harrysmith."
    I think I've found out the reason for this is because in excel, when you click on 'edit hyperlink,' it does not show the entire address in the edit bar, it only shows "..\Documents\Maps\AtlantaGeorgia\Georgia\DRF". So this code cannot change anything that exists before "documents".
    I attempted to run this code as a test, and it changed "..\Documents" to "Desktop\???Documents"
    Please Login or Register  to view this content.
    My question is how can I either show the entire address in the edit hyperlink bar, or is there another way I can change the user name of this address? Thanks

  2. #2
    Registered User
    Join Date
    07-06-2011
    Location
    america, usa
    MS-Off Ver
    Excel 2007
    Posts
    29

    Re: Changing parts of hyperlinks

    I found that by changing the base of the hyperlink via the advanced properties of excel will change the first sections of the hyperlinks. No VBA needed.

+ 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. Hyperlinks keep changing
    By C Holmes in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 02-04-2010, 01:30 PM
  2. Excel 2007 : hyperlinks changing?
    By JMurphy in forum Excel General
    Replies: 2
    Last Post: 10-28-2008, 10:05 PM
  3. Hyperlinks Keep Changing
    By shamon70 in forum Excel General
    Replies: 1
    Last Post: 10-08-2008, 03:56 PM
  4. [SOLVED] changing hyperlinks
    By Ehren in forum Excel General
    Replies: 1
    Last Post: 05-15-2006, 03:20 PM
  5. Changing Hyperlinks?
    By Madvikefan in forum Excel General
    Replies: 2
    Last Post: 04-14-2005, 12:06 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