Share via

VBA UserForm - "Tooltip"

Anonymous
2017-10-06T10:11:19+00:00

Hello everyone,

I currently have a UserForm which has a textbox. This textbox needs a specific format of text as it's a serial number. When you click the textbox it comes up with a message box saying format has to be XYZ. I'd like to change this so that it is a "tooltip style" method. The reason behind this is that I'd like the tooltip to appear on MouseOver/Hover or Selected (as users can tab index to it).

Any ideas?

Thanks,

Daniel

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2017-10-09T08:54:24+00:00

If you want the "tooltip" to be permanent visible, you have to use a 'Label' control, and then format the label to look like a tooltip (background color, border, etc.).

You can then place the label next to your textbox, where you want your "Tooltip" to be visible.

Was this answer helpful?

2 people found this answer helpful.
0 comments No comments

4 additional answers

Sort by: Most helpful
  1. Anonymous
    2017-10-07T00:03:51+00:00

    Daniel,

    re:  textbox tooltip

    In the VBE, select (click) the textbox on the userform.

    In the Properties window, to the right of the "ControlTip Text" item, fill in your message.

    (no quote marks needed)

    '---

    Jim Cone

    Portland, Oregon USA

    https://goo.gl/IUQUN2 (Dropbox)

    (free & commercial excel add-ins & workbooks)

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  2. Anonymous
    2017-10-09T12:10:44+00:00

    You're welcome - glad you made it work :-)

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2017-10-09T09:19:50+00:00

    Of course! That makes perfect sense!

    Thank you Dan

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2017-10-09T08:38:43+00:00

    Hello James,

    This works but only when you hover over the textbox. I'd like for it to appear whenever the textbox is active.

    Any ideas how I can make that happen?

    Thanks,

    Daniel

    Was this answer helpful?

    0 comments No comments