+ Reply to Thread
Results 1 to 16 of 16

Mirror a cell's entire content including hyperlink and comments

  1. #1
    Registered User
    Join Date
    10-19-2019
    Location
    Quebec, Canada
    MS-Off Ver
    Office Professional Plus 2013
    Posts
    12

    Mirror a cell's entire content including hyperlink and comments

    Hi all,

    I have cells in Sheet 1 which each have a different hyperlink and a different comment when you hover over the cells.

    In Sheet 2, I have used an Index with multiple dropdown menus to selectively pull up data from Sheet 1.

    The PROBLEM:
    The hyperlinks and comments are not following over to Sheet 2 but I really need them to.

    The Youtube link below is what i used to build my indexing system. I'm very far along using this system so it could be difficult to change the whole indexing system if that's what you're solution is, but i'm opened to suggestions.
    I'm really just hoping for a modification to my current formula so that it may pick up the hyperlinks and comments from the cells that are being referenced in Sheet 1.

    My current Index Formula:
    Please Login or Register  to view this content.
    Youtube link to my indexing system:
    youtube .com/watch?v=jMFsA1dcXb8

    Thanks

    Edit: I'm not yet aware of any possible solution. However, if the only solution is to use VBA, then I may have posted in the wrong section, and apologize in advance to the moderators of this section of the forum.
    Last edited by dontfcuk; 10-22-2019 at 05:42 PM.

  2. #2
    Registered User
    Join Date
    10-14-2019
    Location
    West Midlands
    MS-Off Ver
    2016
    Posts
    18

    Re: Mirror a cell's entire content including hyperlink and comments

    you will probably find this helps - at least with the URLs
    Regards,


    BatterBits

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Mirror a cell's entire content including hyperlink and comments

    If you need further assistance...

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? However, please give us an indication of the approximate number of rows of data you want the solution to work with (100, 1000, 100,000 or whatever). Please DO NOT attach a picture of an Excel sheet (I do not have the patience to re-type any/all your stuff before starting).

    1. It does NOT have to be your real sheet - mock up a SAMPLE if you need to. But not 1000's of rows!!! It makes manual checking so tedious. Whatever you do... make sure that all confidential information is removed first!!

    2. Make sure that your sample data are truly REPRESENTATIVE of your real data. For example, don't show text in a column if it's really a number. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    3. Make sure that your desired solution is also shown (mock up the results manually). To be honest, I am not interested in seeing a non-working formula... or a pile of blank cells. However, I am very interested in seeing your EXPECTED results in their EXPECTED location.

    4. Try not to use merged cells. They cause lots of problems and are DEFINITELY best avoided!

    Unfortunately the attachment icon doesn't work at the moment. So,... instead click on Go Advanced (below the Edit Window) while composing your reply, then scroll down to and click on Manage Attachments and the Upload window will open. Click on Browse and navigate to (and double-click) the file icon that you want to attach, then click on Upload and then on Close this Window to return to the Edit window. When you have finished composing your post, click on Submit Post.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Registered User
    Join Date
    10-19-2019
    Location
    Quebec, Canada
    MS-Off Ver
    Office Professional Plus 2013
    Posts
    12

    Re: Mirror a cell's entire content including hyperlink and comments

    Hi Glenn,

    Thank you for your response.
    I have spent all morning desensitizing my spreadsheet and removing all items necessary which wouldn't alter the results. You'll notice that in my first Sheet named 'Criteria Tracker', I won't have been able to leave you merely 10-20 lines because doing so will have messed with my Index formula, so i left it all there.

    "Approximate number of rows for the solution to work with", I would say 1,000 to 10,000 cells. Essentially, once the formula has been found/created, I'll be able to apply it to all cells necessary. This is a spreadsheet that gathers data over time so there's no limit to the amount of cells that will have need this formula.

    I hope my spreadsheet is as clear as you expect it to be.

    Thanks again for the help.
    Attached Files Attached Files

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Mirror a cell's entire content including hyperlink and comments

    Oh right!! I'll give it my best shot... in the UK morning... as I'm away shortly.

  6. #6
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,577

    Re: Mirror a cell's entire content including hyperlink and comments

    In Q2 then copy down.

    =HYPERLINK(IFERROR(INDEX('Criteria Tracker'!$A$4:$AS$2001,$M3,COLUMNS($N$3:BD3)),""))
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Mirror a cell's entire content including hyperlink and comments

    KVS... Look at Q2 on statistics. he has that formula in place already.... That's not the question. But, to be honest, I don't know what the question is!!

    I'm on a metered connection for about another week and will not be downloading a 1Mb "sample" file again!!

  8. #8
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,577

    Re: Mirror a cell's entire content including hyperlink and comments

    Dear Glenn Kennedy
    In the formula of dontfcuk cell content appears as text even though hyperlink is there. Formula is changed so that cell content appears as hyperlink.
    I feel dontfcuk wants comments are to be copied by formula. I don't think it is possible. It needs VBA coding

  9. #9
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,429

    Re: Mirror a cell's entire content including hyperlink and comments

    It will require VBA to deal with comments.

    You can use a UDF (user defined function) to return the address for the hyperlink function as well as doing some comment work.


    Statistics!Q3: =IFERROR(HYPERLINK(COPY_COMMENT(INDEX('Criteria Tracker'!$A$4:$AS$2001,$M3,$Q$1))),"")

    $Q$1 contains the column number to return. Currently you are calculating it on each row but the formula you use would suggest this is applicable to all rows.
    Using a range outside of that which contains the udf prevents multiple calls and formatting the comment with the wrong texture.

    here is the COPY_COMMENT function, which is in a standard code module.

    Please Login or Register  to view this content.
    In your example the comments do not have any text. The UDF does copy over the text but it does not format it.
    Is your real workbook has formatted comments you will require extra code to mimic the format
    Attached Files Attached Files
    Cheers
    Andy
    www.andypope.info

  10. #10
    Registered User
    Join Date
    10-19-2019
    Location
    Quebec, Canada
    MS-Off Ver
    Office Professional Plus 2013
    Posts
    12

    Re: Mirror a cell's entire content including hyperlink and comments

    Quote Originally Posted by kvsrinivasamurthy View Post
    Dear Glenn Kennedy
    In the formula of dontfcuk cell content appears as text even though hyperlink is there. Formula is changed so that cell content appears as hyperlink.
    I feel dontfcuk wants comments are to be copied by formula. I don't think it is possible. It needs VBA coding
    Not quite. If you copy a comment to a cell, it will stick to that cell even if the information in the cell changes.
    I'm not sure what other word to use, but i'm really trying to "mirror" the cells my index is referencing. So if the cell has a comment and a hyperlink, it will bring it over. But the references need to be dynamic if you play with the filter's in B3 to B9.

    Hey Everyone,
    really appreciate the help. We're not there yet though. Andy Pope, I opened your spreadsheet and the first 20 results in Q3 to Q23 were blank with comments. No hyperlinked text in the cells. I double checked to make sure your UDF was there and it was. Not sure what happened there. I can post a screenshot. Again, all i did was download your file which has macros saved in it and then i opened it. The attached picture is what it gave.
    Unless the formula isn't working properly, the other problem I noticed is that the comments that appear in column Q are static and permanent in those cells, if I change my filter criteria, they aren't updating by showing me the comments of the new cells being referenced.
    To answer your question, no, there will never be text in the comments, so formatting isn't important. Only the picture needs to be brought over.

    The whole statistics page has dynamic results depending on the filters you choose from B3 to B9 and G3 to G9. In the sample file, only 4 filters can be changed, I kept it that way as an example to show you how the statistics change, and how the results also change in O,P and Q. I would like the comments to update as well when the filters are changed. The comments must belong to the same cell as the hyperlinks from the 'Criteria Tracker' Sheet in column AQ.

    Thanks again everyone for your help . It's all really appreciated. If you have any questions, please ask away. I know I have a hard time explaining myself so it might not be obvious to understand what i'm looking to achieve
    Cheers!
    Attached Images Attached Images
    Last edited by dontfcuk; 10-24-2019 at 10:53 AM. Reason: Forgot to attach picture.

  11. #11
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,429

    Re: Mirror a cell's entire content including hyperlink and comments

    Try this revision.

    You will need to add a helper column so the code knows where the comment should come from.
    add code to Statistics worksheet

    Please Login or Register  to view this content.
    this sub to transfer comments
    Please Login or Register  to view this content.

  12. #12
    Registered User
    Join Date
    10-19-2019
    Location
    Quebec, Canada
    MS-Off Ver
    Office Professional Plus 2013
    Posts
    12

    Re: Mirror a cell's entire content including hyperlink and comments

    Hey Andy,

    my lack of VBA knowledge is preventing me form fully understanding how to implement the 2 codes you posted.
    Do I simply need to copy-paste these 2 codes in 2 separate modules?
    Once that's done, how do I tell the code which helper column to get the comments from (I'm also confused about how to even achieve this with regular excel functions.)

    Would you be able to use the sample excel sheet i sent you to show me how it's done?
    Thanks, i really appreciate it!

  13. #13
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,429

    Re: Mirror a cell's entire content including hyperlink and comments

    Here is a working example.

    As I said the Change event code goes in the sheets code module.
    The COPY_COMMENT routine goes in a standard code module.

    The event code will be run when the contents of B3:B9 changes.
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    10-19-2019
    Location
    Quebec, Canada
    MS-Off Ver
    Office Professional Plus 2013
    Posts
    12

    Re: Mirror a cell's entire content including hyperlink and comments

    I apologize for my radio silence. I haven't been near my computer and probably won't be until tomorrow or wednesday. I'll have to get back to you.
    Thanks so much for the help!

  15. #15
    Registered User
    Join Date
    10-19-2019
    Location
    Quebec, Canada
    MS-Off Ver
    Office Professional Plus 2013
    Posts
    12

    Re: Mirror a cell's entire content including hyperlink and comments

    Hey Andy,

    Thanks again for your help and I apologize again for not getting back to you sooner.
    So, I took a look at the document you sent as an attachment and when I change the filters, the comments are always staying the same, they aren't updating with the new filter criteria. The comments are supposed to change along with the information in the cells of column Q when the filters are being changed.

    Was it working for you on your computer? Is this a matter of me not having a specific script "allowed"? All I did was download your file, open it, and enabled editing to make sure i could see everything.

    thanks

  16. #16
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,429

    Re: Mirror a cell's entire content including hyperlink and comments

    If I change the values in B3:B9 on the Statistics worksheet then the comments update

+ 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 to convert cell content to comments??
    By prakash24 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-14-2017, 02:38 PM
  2. Need help with including a hyperlink in an email from a specific cell
    By ncu777 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-14-2017, 04:18 PM
  3. VBA to lookup matching cell content for copy & pasting cell comments
    By chasoe in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-19-2016, 11:15 PM
  4. [SOLVED] How to dynamically convert cell content from one sheet to comments in another?
    By clairejasper in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-18-2016, 01:26 AM
  5. Adding Dynamic Comments based on the Target Cell Content..using a MACRO..
    By e4excel in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-20-2012, 04:14 AM
  6. Clear cell content and comments takes a long time
    By Snoopy2003 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-23-2010, 06:28 AM
  7. How do I export comments into another excel column as cell content
    By Hernan in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-25-2005, 11:06 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