+ Reply to Thread
Results 1 to 5 of 5

Double click cell and cell contents display in a Window,Frame

  1. #1
    Registered User
    Join Date
    04-14-2015
    Location
    London
    MS-Off Ver
    2007
    Posts
    36

    Double click cell and cell contents display in a Window,Frame

    Hi all,

    I need your kind help with vba code that when a cell in a certain column or range is double clicked on, it displays the target text in a pop window or frame or print object form, like an excel popup. I'm aware of various options of using coments code or data validation messages but they have character limits so of no use for me.

    the reason i need an alternative that can display text up to a cells character limit as the target cell will contain pasted in email chains.

    Thanks in advance.

  2. #2
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Double click cell and cell contents display in a Window,Frame

    Not sure what your "target text" will be, so it's hard to provide the full code, but the basic outline would be:

    Please Login or Register  to view this content.
    But I don't think that text is selectable, so maybe not what you want.

    I think a better solution might just be to have VBA create the email for you with the target text in it. I can help you do that if that's the route you want to go, and a little bit more explanation of what the target text is and how it's chosen would be helpful.

  3. #3
    Registered User
    Join Date
    04-14-2015
    Location
    London
    MS-Off Ver
    2007
    Posts
    36

    Re: Double click cell and cell contents display in a Window,Frame

    Quote Originally Posted by walruseggman View Post
    Not sure what your "target text" will be, so it's hard to provide the full code, but the basic outline would be:

    Please Login or Register  to view this content.
    But I don't think that text is selectable, so maybe not what you want.

    I think a better solution might just be to have VBA create the email for you with the target text in it. I can help you do that if that's the route you want to go, and a little bit more explanation of what the target text is and how it's chosen would be helpful.
    Hi walruseggman, thanks for your prompt response and apologies for my delayed one which was due to me nursing my poorly daughter.

    The msgbox function isn't an option as is has a very low character limit and is not displaying the full contents of the target cell text.

    the function is not to create an email, it's just so the user can view the cell contents is a much bigger window, and then click out of that window and proceed to doing other things in the sheet.

    I was also thinking if I cannot manage to get a solution which ideally displays the entire cell text in a popup window, then maybe run code that will expand the cell so the text content is clearly readable and then retract it if they click out of the cell..I have started modules in the document but they giving me argument not optional errors too.

    Preferably i would like a nice window or frame displaying the text.

    I have uploaded a test spreadsheet of with ideas of what i'm trying to achieve.

    Many many many thanks in advance !!

  4. #4
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Double click cell and cell contents display in a Window,Frame

    As far as I know, there isn't a way to trigger an event when the reference is to another workbook. It's possible I'm wrong, but I've had this same conversation multiple times before with no satisfactory answer, and nothing ever found on google.

    Sorry I missed that detail in my original post, or I wouldn't have posted the code I did. So I don't think I have a solution for you, but wish you luck. If you do find a solution, I'd love to know about it.

  5. #5
    Registered User
    Join Date
    04-14-2015
    Location
    London
    MS-Off Ver
    2007
    Posts
    36

    Re: Double click cell and cell contents display in a Window,Frame

    Quote Originally Posted by walruseggman View Post
    As far as I know, there isn't a way to trigger an event when the reference is to another workbook. It's possible I'm wrong, but I've had this same conversation multiple times before with no satisfactory answer, and nothing ever found on google.

    Sorry I missed that detail in my original post, or I wouldn't have posted the code I did. So I don't think I have a solution for you, but wish you luck. If you do find a solution, I'd love to know about it.
    This is not referencing another workbook... not sure what you mean?

+ 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: 0
    Last Post: 05-21-2015, 09:19 AM
  2. Need simple way to copy a cell's contents upon double-click.
    By Ruark in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-02-2013, 12:18 AM
  3. Userform on double click with options to add to cell contents
    By skyping in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 10-03-2011, 08:16 AM
  4. Double click a cell to display something
    By zhshqzyc in forum Excel General
    Replies: 10
    Last Post: 01-24-2011, 05:31 PM
  5. [SOLVED] Using double click on active cell to open a custom help window
    By burl_rfc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-22-2006, 05:55 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