Solved

Tooltips in VBA

Posted on 2007-11-23
2
4,607 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
2 Comments
 
LVL 33

Accepted Solution

by:
roos01 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

747 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now