In a VBA project, insert a reference (Tools>References) to 'Microsoft Office
x.0 Library' where x is your version of office. Now open the Object Browser
and select the Office library. You can select Balloon in the list of
classes and press F1 for a starting point.
Neat trick, but I was looking for a way to open and Office Assistant
balloon, type in text, and that text then be used as a variable in my macors
(I not even sure it is a macro now that I have learned about functions,
procedures, etc.)
I have read heaps in the Help file. Maybe I am missing it. I am trying to
display a Balloon, type in some text to use in a search, then close the
balloon. This is similiar to finding help topics with the Office Assistant.
If you'd already been through the help, then you were already ahead of me,
but I looked into it for curiosity's sake. It seems the only controls
supported on an office balloon created using VBA are labels and checkboxes.
There is no text entry control that could be used for getting string input.
Not willing to leave it at that, I did a test to see if
Assistant.AssistWithAlerts would cause the normal InputBox function to
display as a balloon, but no joy.
I had to use a UserForm for the text input. Seems logical that if the
technology is there to have a text input in the Assistant Search then it
could be available to VBA. Oh well.
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.