+ Reply to Thread
Results 1 to 6 of 6

Prevent hyperlink to change the color

  1. #1
    Forum Contributor
    Join Date
    08-17-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    132

    Prevent hyperlink to change the color

    Hi,

    If anybody add sheet in the workbook then following code create a hyperlink in the first sheet of the workbook with new sheet name. On following the hyperlink, i would like to prevent Excel from changing the color of linked text.

    Is there any way round using VBA for this??

    Thanks for your help.

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Prevent hyperlink to change the color

    http://superuser.com/questions/72882...a-clicked-link

    Modify the theme used for a Followed hyperlink to be the same as an unfollowed hyperlink:

    Page Layout tab of the ribbon
    Click Colors in the Themes group
    Click Create New Theme Colors
    Set Followed Hyperlink color to same as Hyperlink
    Last edited by humdingaling; 05-18-2016 at 11:42 PM.
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Contributor
    Join Date
    08-17-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    132

    Re: Prevent hyperlink to change the color

    Hi There,

    Thanks for your time and providing the link.

    I am aware, how to do it using Excel however just would like to find out the way to do it through vba.

    Regards,

  4. #4
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Prevent hyperlink to change the color

    Please Login or Register  to view this content.
    put this at the end of your code

    if Followed Hyperlink theme does not exist
    put under worksheet "home Work"

    Please Login or Register  to view this content.
    Last edited by humdingaling; 05-19-2016 at 01:57 AM. Reason: spelling

  5. #5
    Forum Contributor
    Join Date
    08-17-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    132

    Re: Prevent hyperlink to change the color

    Thanks it worked using worksheet event method. You are STAR.

  6. #6
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Prevent hyperlink to change the color

    thanks for the rep

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. How do you change the color of a hyperlink after you click on it?
    By David McRitchie in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 07:05 AM
  2. How do you change the color of a hyperlink after you click on it?
    By David McRitchie in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2005, 06:05 AM
  3. How do you change the color of a hyperlink after you click on it?
    By David McRitchie in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 04:05 AM
  4. How do you change the color of a hyperlink after you click on it?
    By Husker87 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  5. How do you change the color of a hyperlink after you click on it?
    By Husker87 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  6. How do you change the color of a hyperlink after you click on it?
    By Husker87 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  7. [SOLVED] How do you change the color of a hyperlink after you click on it?
    By Husker87 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-11-2005, 02:05 PM
  8. Prevent change of color scheme in Pivot chart
    By Bernd in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 02-10-2005, 04: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