+ Reply to Thread
Results 1 to 23 of 23

Showing Roll-Over/Hover Text As Display Text

  1. #1
    Registered User
    Join Date
    07-28-2011
    Location
    .
    MS-Off Ver
    Excel 2010
    Posts
    68

    Exclamation Showing Roll-Over/Hover Text As Display Text

    Hey everyone,

    Attached is an add-in that was developed by a moderator of this forum a couple of weeks ago, and even though it works great and the help I got was awesome we couldn't get to finalizing a last little remaining thing for some reason, guess this place is busy

    Anyways, basically what the add-in does is that it allows the editing of tons of hyperlinks display texts.

    What this means is that for example you'd have a hyperlink on a spreadsheet, and when you right-click it and choose "edit hyperlink" you get the choice to add a "text to display" and an "address".

    Let's say I have a hyperlink called "www.link1.com" but I want it to display as "link1" only.

    Now that's pretty easy to do, but then it becomes pretty impossible when you have to do the same with 10,000 other hyperlinks.

    So this great little add-in automates the process, where when you open it, a box pops-up where you can add all your "texts to display", then you select a row of hyperlinks, then you click "change selected links" and everything is edited in a couple of seconds instead of like 5 months, pretty cool right?

    Basically there's a last little thing left which I've been trying to get some help on for nearly 2 weeks now.

    Now the last remaining thing, really hope I can get help on this one as I'm going to be needing it a couple of days from now.....

    Could anyone look into the attached add-in (v2) and make a small edit which is to have all the display texts you add into the add-in also be the roll-over text that shows when someone hovers his mouse over the link/display text?

    This'd be done automatically, meaning that upon pasting in the display texts into the User Box of the add-in and replacing the links with the new display texts the roll-over/hover showing the "address" that you can see when you right-click on a hyperlink and choose "edit hyperlink" would instead show the same display text you pasted into the User Box which then became the new display text instead of the link.

    This extra feature would be done automatically (showing the display text when the mouse is hovered over a link instead of the "address").

    By the way, the shortcut command to bring up the User Box is CTRL+SHIFT+K, just in case this would be helpful to anyone who'll be using it.

    If anything isn't clear please let me know, any help is greatly appreciated.

    Thanks,
    Eric
    Attached Files Attached Files
    Last edited by Eric Excels; 08-31-2011 at 09:58 PM.

  2. #2
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Showing Roll-Over/Hover Text As Display Text

    IF you are happy with the code, only one line of code needs to be added for that. See the line after Rem. DoubleClick Userform1 and then the Change links button and replace that Sub with this or just add that one line.
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    07-28-2011
    Location
    .
    MS-Off Ver
    Excel 2010
    Posts
    68

    Re: Showing Roll-Over/Hover Text As Display Text

    Hi Kenneth,

    I appreciate the help. So it's that simple? Simply adding a line?

    Just one thing though, really not sure at all how I should go about going into all these things you specified, yet alone find the code and add a line etc, any chance you could add this line that would make this happen yourself and re-attach the add-in in this thread?

    Thanks,
    Eric

    EDIT: Actually nevermind, did 5 mins of research and was able to add it myself, works great, thanks a lot, rep added

    Just wondering though, why did you say in your previous post "IF you are happy with the code", do you see any improvements to be made?

    Let me know, thanks.

    Eric
    Last edited by Eric Excels; 08-24-2011 at 12:51 PM.

  4. #4
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Showing Roll-Over/Hover Text As Display Text

    Glad you figured it out. I purposely let you have time to do so.

    Beauty is in the eye of the beholder. If it suits your needs, you are good to go. It did some things that I would not want. e.g. It closed the file. It did not update all the cells in a selected range. Why someone would want that with the same short name, I don't know. e.g. Ken

    I would have thought that your original request to add a base part of the url to be more useful though even that might have several duplicate short names.
    e.g.
    http://www.excelforum.com/excel-programming/ as excelforum
    http://www.vbaexpress.com/forum/forumdisplay.php?f=17 as vbaexpress
    http://www.mrexcel.com/forum/forumdisplay.php?f=10 as mrexcel
    etc.

  5. #5
    Registered User
    Join Date
    07-28-2011
    Location
    .
    MS-Off Ver
    Excel 2010
    Posts
    68

    Re: Showing Roll-Over/Hover Text As Display Text

    Yeah the line you provided does exactly what I asked for, it's great.

    But what do you mean when you say that the add-in closed the file or didn't update some of the cells inside a range?

    You mean you found some bugs in there or something?

  6. #6
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Showing Roll-Over/Hover Text As Display Text

    If it meets your need, then there are no bugs. If you find an issue that you need dealt with, you can always ask for help.

  7. #7
    Registered User
    Join Date
    07-28-2011
    Location
    .
    MS-Off Ver
    Excel 2010
    Posts
    68

    Re: Showing Roll-Over/Hover Text As Display Text

    Well actually there's one thing that's kinda annoying, maybe this is also what you meant by "it closes the file"....

    If you look into the add-in's components there's a part named "KeepFormOnTop" which is something I needed in the first time around that this add-in got developed.

    I needed it because I wanted it to stay open and on top of all and any Excel workbooks/worksheets that would subsequently be opened this way I could re-apply the same display texts over and over without having to close and open the add-in for each new worksheet/workbook.

    Issue is it seems that when you open the add-in from a specific worksheet/workbook it will only work on that specific worksheet/workbook unless otherwise re-opened on another worksheet/workbook where editing new display texts is wanted.

    So in short, basically if you are using the add-in on a current worksheet/workbook and you then open up another new workbook/worksheet where you want to apply the already same inputted display texts, you have to re-open the add-in on that newly opened worksheet/workbook.

    Do you know if there's a way to have the add-in stay on top like it was intended to be, but also be automatically applicable/working for all and any workbook/worksheet regardless of the original workbook/worksheet it was opened on at first?

    This was something I was meaning to open another thread for but you brought it up earlier than expected on here, so I take it, why not ask and get rid of this issue now right?

    Thanks again,
    Eric

  8. #8
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Showing Roll-Over/Hover Text As Display Text

    I got an error each time that I opened Excel so I commented out two lines. I did not want the userform showing when I opened Excel anyway.

    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    07-28-2011
    Location
    .
    MS-Off Ver
    Excel 2010
    Posts
    68

    Re: Showing Roll-Over/Hover Text As Display Text

    Hi Kenneth,

    Yes I actually get the same error as well but a simple way I solved this was by adding a shortcut to the add-in on my Quick Access Toolbar (so that I can easily bring up it by simply clicking it whenever needed) and then went in my add-ins menu and simple unchecked it from the current active add-ins.

    Now it doesn't show the error at all, and I can simply bring up the add-in by clicking this Quick Access Toolbar shortcut I have setup.

    Regarding my previous post, any idea as to how we can fix this issue where the add-in only works with the worksheet/workbook it was opened on originally unless it is re-popped up on a new worksheet/workbook?

    Making it work by default on all sheets without having to re-pop it on for each new worksheet/workbook would save a lot of time and really is the best option.

    Please let me know.

    Thanks again,
    Eric

  10. #10
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Showing Roll-Over/Hover Text As Display Text

    I don't know what you mean. Just close it with the X, not the Stop button unless you reply No when you press it rather than Yes to close it.

  11. #11
    Registered User
    Join Date
    07-28-2011
    Location
    .
    MS-Off Ver
    Excel 2010
    Posts
    68

    Re: Showing Roll-Over/Hover Text As Display Text

    Hi Kenneth,

    I'll try to be as detailed as possible this way you can exactly see what I'm trying to say....

    First open up some random Excel workbooks (I'd recommend opening 3 workbooks this way you can see exactly what I mean) and then on any of the selected workbooks open up the add-in.

    Then just click on the blank box (the one where you're supposed to paste in the display texts).

    Alright, with that done now go to any other of the 2 opened workbooks, what you'll see is that the add-in User Box actually stays on top, however as soon as you click on it it brings you back to the same first workbook where the add-in was originally opened.

    The problem with this is that for the majority of the time I'd want to use the same display texts I used on a previous spreadsheet, however with this slight "bug" if you want to call it this way, I have to re-pop the box on each different workbook I want to use the add-in on, this becomes quite annoying and time-draining with the number of sheets I'd have to do this with.

    So do you think there's any way to have the add-in function like it is right now, staying on top, but also work with any workbook regardless of which workbook it was first opened on?

    If anything wasn't clear please let me know, I'll try to add more details if you think this is something we can fix.

    Thanks again,
    Eric

  12. #12
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Showing Roll-Over/Hover Text As Display Text

    I don't see why you would want it to run like that. I would not have a need to run something like that every time that I open Excel.

    Are you wanting all links in all workbooks and all worksheets and all selections changed? What I would do is to use it in my personal workbook. If you want to modify several worksheets in all open workbooks with selections in each then the macro could be modified to do that. I would change the Close button to just close the userform, not the addin workbook.

    So, if used often enough, I would put it in my personal workbook. If not used often, I would just add a personal workbook macro to open that workbook. This could be assigned to your key combination and be seamless.

  13. #13
    Registered User
    Join Date
    07-28-2011
    Location
    .
    MS-Off Ver
    Excel 2010
    Posts
    68

    Re: Showing Roll-Over/Hover Text As Display Text

    Actually it was pretty easy solving this issue where the add-in would pop-up every time Excel is opened, as I wouldn't want it to open up each time either.

    What I did is I simply disabled it in my add-ins and put a shortcut to it on my QAT, which I can simply click whenever I need to use the add-in, so that's no issue.

    What I was saying in my previous post is the add-in is meant to stay on top of workbooks/worksheets due to the "KeepFormOnTop" module which I actually need to speed-up tasks and not have to re-open the add-in for each workbooks/worksheets I want to use it on.

    But what happens is it seems the add-in actually stays on top of workbooks/worksheets, even on newly opened ones, but as I detailed it in my previous post, only works on the original workbook/worksheet it was opened on which would mean it must be re-opened on each new individual workbook/worksheet for it to work on it.

    So do you know of any way where we could have the add-in working on any workbook/worksheet regardless of where/when it was opened?

    Try out what I detailed in my previous post and you'll see what I mean (and like I said, I simply added a shortcut to the add-in, then disabled it so it wouldn't automatically open with Excel each time, now I can simply open it whenever needed from my QAT).

    Also you said in one of your previous posts that sometimes the add-in doesn't edit all links, I have seen this happen a number of times, not sure what causes this, could this be fixed too?

    Thanks a lot Kenneth, let me know if you need more details or have any questions, I hope we can solve these little issues and get them over with.

    Thanks again,
    Eric

  14. #14
    Registered User
    Join Date
    07-28-2011
    Location
    .
    MS-Off Ver
    Excel 2010
    Posts
    68

    Re: Showing Roll-Over/Hover Text As Display Text

    Bump -- Any ideas if these are things that could be arranged?

    Thanks,
    Eric

  15. #15
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Showing Roll-Over/Hover Text As Display Text

    Did you want it to work on the selection of each workbook or just the selection in the activeworkbook?

  16. #16
    Registered User
    Join Date
    07-28-2011
    Location
    .
    MS-Off Ver
    Excel 2010
    Posts
    68

    Re: Showing Roll-Over/Hover Text As Display Text

    Hi Kenneth,

    Yes we'd want the add-in to work on any selection regardless of the workbook/worksheet it was opened on.

    What I meant in the above simply was that if I open the add-in on a worksheet called "Sheet1" it would only work on the workbook called "Sheet1", and as thus if I opened another workbook called "Sheet2" I'd have to re-open the add-in on "Sheet2" as well if I want to use it.

    This takes up a lot of time, and would mean that if I had 2 separate workbooks/worksheets I'd have to have the add-in opened 2 times on each of the 2 worksheets/workbooks.

    We don't want that though, what we want is for the add-in to work on any workbook/worksheet regardless of which one it was opened on.

    So if I open the add-in on "Sheet1", I'd also want it to work on "Sheet2", and "Sheet3" and "Sheet56" etc etc regardless of the fact that it was first opened on "Sheet1" which currently as of now would mean that the add-in only works on there.

    I only encounter this issue when trying to run the add-in on multiple workbooks, internal worksheets don't have that issue though.

    Let me know.

    Thanks,
    Eric
    Last edited by Eric Excels; 08-31-2011 at 12:06 AM.

  17. #17
    Registered User
    Join Date
    07-28-2011
    Location
    .
    MS-Off Ver
    Excel 2010
    Posts
    68

    Re: Showing Roll-Over/Hover Text As Display Text

    Hi Kenneth,

    Any updates on this?

    Thanks,
    Eric

  18. #18
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Showing Roll-Over/Hover Text As Display Text

    This still has an issue. If you select A1:A3 and put Z1, Z2, and Z3 with return codes after each in the Textbox, it does A1 right but puts Z3 into A2 and skips A3.

    Please Login or Register  to view this content.

  19. #19
    Registered User
    Join Date
    07-28-2011
    Location
    .
    MS-Off Ver
    Excel 2010
    Posts
    68

    Re: Showing Roll-Over/Hover Text As Display Text

    Hi Kenneth,

    Thanks a lot for this new code.

    Just wondering, what do you mean by "this still has issues"? And what's a return code?

    I tested out the code from my side and seems to be working great, haven't encountered any issue.....but I'd like to know what you're talking about this way I don't bump into any issues while I'm working with the add-in and start wasting a lot of time trying to fix any mistakes I might've made using it etc.

    Let me know, thanks.
    Eric

  20. #20
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Showing Roll-Over/Hover Text As Display Text

    The way that it should work as I see it is that you might select say cells A1, A2, and A3 all with hyperlinks. Type into the textbox say:
    Ken1
    Ken2
    Ken3

    When you replace, with the button2, you will see that Ken1 was put into A1, and Ken3 into A2. A3 was not changed.

    I will think on this more.

  21. #21
    Registered User
    Join Date
    07-28-2011
    Location
    .
    MS-Off Ver
    Excel 2010
    Posts
    68

    Re: Showing Roll-Over/Hover Text As Display Text

    I actually just tried that, and also tried with many more hyperlinks of my own and I see it working well, not sure if this is from your end maybe?

    Also I edited the ScreenTip code to look like that (so as to match with the new code you provided)...

    Please Login or Register  to view this content.

    Would that be correct?

    Anyways let me know if you think there actually is a fix to this issue you're saying doesn't edit the links.

    Thanks again,
    Eric

  22. #22
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Showing Roll-Over/Hover Text As Display Text

    Good. I was using Excel 2010 in xppro. I just copied one link to 3 cells to test. If it works for you then you are set.

  23. #23
    Registered User
    Join Date
    07-28-2011
    Location
    .
    MS-Off Ver
    Excel 2010
    Posts
    68

    Re: Showing Roll-Over/Hover Text As Display Text

    Alright great well thanks a lot for all the helpful input Kenneth, it's definitely appreciated

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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