+ Reply to Thread
Results 1 to 6 of 6

Make a userform visible only when a particular cell is clicked

  1. #1
    Registered User
    Join Date
    11-16-2011
    Location
    Vermont
    MS-Off Ver
    Excel 365
    Posts
    57

    Make a userform visible only when a particular cell is clicked

    I have a userform that provides explanation for the data in a particular cell. I want it to appear as a "pop-up" only when that cell is clicked (or hovered over, if that's easier).

    the form is named vehicle_month.

    the closest I've been able to get is this—
    Please Login or Register  to view this content.
    —but of course this opens the form when any new cell is clicked.
    I tried targeting the cell I wanted using
    Please Login or Register  to view this content.
    but then I get an error message:
    Capture.JPG

    Can anyone offer any help? I'm old, have been out of this for 10 years, and my brain is atrophied. So please be gentle.

    Thanks so much!
    Nick

    (I'm only an egg)

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

    Re: Make a userform visible only when a particular cell is clicked

    Consider using the cell Comment feature. It provides a pop-up text box when you hover over a cell.

    How to Add Comments to an Excel Worksheet Cell
    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.

  3. #3
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Make a userform visible only when a particular cell is clicked

    Hi there,

    Maybe:

    Please Login or Register  to view this content.

    or


    Please Login or Register  to view this content.

    Hope this helps,

    Regards,

    Greg M

  4. #4
    Registered User
    Join Date
    11-16-2011
    Location
    Vermont
    MS-Off Ver
    Excel 365
    Posts
    57

    Re: Make a userform visible only when a particular cell is clicked

    Quote Originally Posted by AlphaFrog View Post
    Consider using the cell Comment feature. It provides a pop-up text box when you hover over a cell.

    Thanks. AlphaFrog. That was in fact my first thought. But I couldn't find any way to embed the table in the comment, and without doing that, the information wouldn't update itself if the supporting data was changed.

    Also, I really dislike what MS has done with comments in Excel365, don't you? They've not only radically changed the look of comments, they've changed their actual intent.. They're no longer a place to add detail notes so much as a vehicle for dialogue between multiple users. I'm going to spend some time at the site you linked to, to see if there's any way to change that.

    Again, thanks!

  5. #5
    Registered User
    Join Date
    11-16-2011
    Location
    Vermont
    MS-Off Ver
    Excel 365
    Posts
    57

    Re: Make a userform visible only when a particular cell is clicked

    Thank you, Greg!! That was it. In fact,either of the two options you posted work. Actually, at some point, I had tried the first of those two options, but I had apparently done something else wrong at the time.

    And now, I find, if I add

    Please Login or Register  to view this content.
    —at the end, then the form disappears again when I click in any other cell. Magic!

    Thanks so much for your help.

  6. #6
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Make a userform visible only when a particular cell is clicked

    Hi again,

    Many thanks for your feedback and also for the Reputation increase - much appreciated!

    You're welcome - glad I was able to help.

    Best regards,

    Greg M

+ 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. Make a list that shows up when a cell is clicked
    By iiro in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-24-2018, 02:20 AM
  2. [SOLVED] Userform Launch - show userform when any cell in range on any worksheet is double clicked
    By Armitage2k in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-27-2016, 03:38 AM
  3. [SOLVED] How to make a non-macro button/checkbox that when clicked will copy value out of that cell
    By ladydubs in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-20-2013, 12:44 PM
  4. [SOLVED] UserForm Command Button - how to make it change appearance when clicked
    By schmidt62 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-12-2012, 10:53 AM
  5. UserForm Knowledge Needed to make labels visible and unvisble based on event change
    By clemsoncooz in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-20-2012, 08:58 AM
  6. Looping through userform textboxs to make them visible
    By Alan Steele in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-04-2012, 02:19 PM
  7. Make calendar visible and invisible in userform
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-24-2009, 05:28 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