Solved

Tooltips in VBA

Posted on 2007-11-23
2
4,618 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:
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…
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…

839 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