Solved

Tooltips in VBA

Posted on 2007-11-23
2
4,641 Views
Last Modified: 2008-09-09
I need to create tooltips on a form I'm running in Excel. I'm neither particularly familiar with VBA (most of my Microsoft dev experience is in C# and VB6), nor tooltips.

Does Microsoft provide a nice simple way to do this, or is there a free package out there I can use (with source code, as I need to ship my Excel sheet around and don't want to include a .dll with it)?
0
Comment
Question by:Melvinivitch
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 33

Accepted Solution

by:
Jeroen Rosink earned 500 total points
ID: 20341966
If you are using a userform in excel and you added objects to that form then you can use the "ControlTipText" option in the property window of that control to add you tooltip. So when the user is hovering over the object that text will be shown.

I hope this works for you
regards,
Jeroen
0
 
LVL 17

Expert Comment

by:Shanmuga Sundaram
ID: 20342063
Sub ChangeToolTipsText()
    Application.CommandBars("Formatting").Controls(1).TooltipText = "Test"
End Sub


Sub ResetToolTipsText()
    Application.CommandBars("Formatting").Controls(1).TooltipText = ""
End Sub


Sub ResetAllControlSettings()
    Application.CommandBars("Formatting").Controls(1).Reset
End Sub

0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question