+ Reply to Thread
Results 1 to 9 of 9

=HYPERLINK and adding a Screen Tip based on a cell reference in the active worksheet

  1. #1
    Registered User
    Join Date
    12-26-2016
    Location
    London, England
    MS-Off Ver
    365
    Posts
    79

    =HYPERLINK and adding a Screen Tip based on a cell reference in the active worksheet

    Hi I have the following formula in Cell D7 in a worksheet called 'Data'

    Please Login or Register  to view this content.
    and I believe there is an addition that I can make to add a Screen Tip based on a Cell Reference - Can anyone help?

    I need the above formula to also show the Screen Tip based on the Cell Reference in this worksheet 'Data' with the the Text "Take me to..." and then the value of Cell C7

    Hope this is a simple request?

    Any ideas?

    Regards
    Hans
    Last edited by hans302; 01-29-2017 at 01:19 PM.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,151

    Re: =HYPERLINK and adding a Screen Tip based on a cell reference in the active worksheet

    like ...

    =HYPERLINK("#'Home Page'!A4","Take me to " &C7) ???

  3. #3
    Registered User
    Join Date
    12-26-2016
    Location
    London, England
    MS-Off Ver
    365
    Posts
    79

    Re: =HYPERLINK and adding a Screen Tip based on a cell reference in the active worksheet

    No.... that just returns cell C7 with the Text "Take me to" added to C7 - I need it to be a "SCREEN TIP" so when you hover over the cell it displays the Text "Take me to "& the value in cell C7.

    Sorry if I did not make that clear in my first post?

    Regards
    Hans

  4. #4
    Registered User
    Join Date
    07-08-2016
    Location
    USA
    MS-Off Ver
    Office 365, Office 2016 for PC & Mac, Office 2013, Office 2011 Mac
    Posts
    80

    Re: =HYPERLINK and adding a Screen Tip based on a cell reference in the active worksheet

    Hi Hans,

    To get a custom Screen Tip you need to insert a hyperlink instead of using the hyperlink function.

    Insert Tab-->Links-->Hyperlink or shortcut Control K
    Link to--> Place in Document
    Type the Cell Reference and Text to Display
    Click ScreenTip: "Take me to..."

    You could use VBA:

    Please Login or Register  to view this content.
    DMG

  5. #5
    Registered User
    Join Date
    12-26-2016
    Location
    London, England
    MS-Off Ver
    365
    Posts
    79

    Re: =HYPERLINK and adding a Screen Tip based on a cell reference in the active worksheet

    Thanks for the VBA
    Unfortunately the 'Set cell_reference' only works within the current worksheet - I need it to access different worksheets - Is there a code for that?

    The ScreenTip bit works fine !

    Regards
    Hans

  6. #6
    Registered User
    Join Date
    07-08-2016
    Location
    USA
    MS-Off Ver
    Office 365, Office 2016 for PC & Mac, Office 2013, Office 2011 Mac
    Posts
    80

    Re: =HYPERLINK and adding a Screen Tip based on a cell reference in the active worksheet

    I think this should work.

    1. Change cell_reference from range to string
    2. Remove range from around inputbox for cell_reference
    3. SubAddress:= cell_reference

    Please Login or Register  to view this content.
    First input should be entered as SheetName!cell reference (Ex:Sheet1!a1) to move to another sheet.

    DMG

  7. #7
    Registered User
    Join Date
    12-26-2016
    Location
    London, England
    MS-Off Ver
    365
    Posts
    79

    Re: =HYPERLINK and adding a Screen Tip based on a cell reference in the active worksheet

    That's great - I just needed top put ' around the sheet name for it to work (EG 'Sheet1!'a1)

    One final ask.... Is there a way of setting the screen_tip as the activecell.text instead of the input box? i.e. ScreenTip:="Take me to " & CStr(screen_tip), _ where CStr(screen_tip) is the activecell.text

    Thanks again
    Hans

  8. #8
    Registered User
    Join Date
    07-08-2016
    Location
    USA
    MS-Off Ver
    Office 365, Office 2016 for PC & Mac, Office 2013, Office 2011 Mac
    Posts
    80

    Re: =HYPERLINK and adding a Screen Tip based on a cell reference in the active worksheet

    I think CStr(activecell) or CStr(activecell.value) should work. However, I didn't test it out.


    DMG

  9. #9
    Registered User
    Join Date
    12-26-2016
    Location
    London, England
    MS-Off Ver
    365
    Posts
    79

    Re: =HYPERLINK and adding a Screen Tip based on a cell reference in the active worksheet

    Yes that worked !!

    Code as follows
    Please Login or Register  to view this content.
    Thanks again
    Hans

+ 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] Reference row of Active Cell in Hyperlink formula
    By delaing in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-12-2015, 04:46 PM
  2. [SOLVED] Adding active Hyperlink to a cell using UserForm
    By pipoliveira in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-10-2015, 07:51 AM
  3. Replies: 5
    Last Post: 03-11-2015, 03:13 PM
  4. External cell reference based on hyperlink in a cell in the active sheet
    By Sydstar in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-29-2014, 08:25 AM
  5. Replies: 4
    Last Post: 10-29-2014, 05:10 AM
  6. Cell reference based on active cell
    By fugima in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-22-2011, 08:16 AM
  7. Hyperlink selected cell to last worksheet in active workbook.
    By Mr.G. in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-22-2009, 05:45 AM

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