+ Reply to Thread
Results 1 to 2 of 2

Index hyperlinks to show workbook cell text

  1. #1
    Registered User
    Join Date
    12-14-2020
    Location
    Texas, USA
    MS-Off Ver
    Various
    Posts
    1

    Index hyperlinks to show workbook cell text

    Working in Excel 2010

    I have the index loop but I simply want to display the text in cell A4 of each sheet instead of the sheet name (which needs to stay as the default). The number of sheets is dynamic (usually no more than 25 or 30) but they are all the same template so the cell location can be absolute. I have everything else exactly as I wish it, except for the name to display.

    The text in the cells I want to reference is far longer than the 31 character limit to rename my sheets as well as (once I am done with it) it goes to others with separate macros, so renaming the sheets is not an option.

    The code I have is as follows:

    [VBA]
    Worksheets("QuickView").Select

    For i = 1 To Sheets.Count

    ActiveSheet.Hyperlinks.Add _
    Anchor:=ActiveSheet.Cells(3 + i, 4), _
    Address:="", _
    SubAddress:="'" & Sheets(i).Name & "'!A4", _
    TextToDisplay:=Sheets(i).Name
    [/VBA]

    I've tried to change the TextToDisplay in several different configurations but it won't accept anything that I change it to.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Index hyperlinks to show workbook cell text

    Please Login or Register  to view this content.
    Please see my signature block below about the use of CODE tags (not VBA tags) and edit your original post.
    Last edited by AlphaFrog; 12-14-2020 at 08:34 PM.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

+ 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. Replies: 2
    Last Post: 05-29-2017, 11:03 AM
  2. manipulating urls into hyperlinks in / with cell text
    By riwiseuse in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-15-2016, 08:34 AM
  3. [SOLVED] Copy hyperlinks to cell with text already in it
    By rfcapinto in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-26-2014, 09:10 AM
  4. HELP Copy hyperlinks to cell with text in it
    By rfcapinto in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-26-2014, 07:52 AM
  5. Inserting Text Cell References in Hyperlinks???
    By blackmejack in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-25-2007, 02:52 PM
  6. hyperlinks and plain text in same cell?
    By kec in forum Excel General
    Replies: 4
    Last Post: 06-07-2006, 02:45 PM
  7. Replies: 1
    Last Post: 08-26-2005, 05:05 PM

Tags for this Thread

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