Solved

vba excel Modeless Balloon

Posted on 2007-04-03
6
798 Views
Last Modified: 2012-05-05
Hi guys,

I have a balloon that I am trying to make modeless so my users can interact with the spreadsheet without dismissing the balloon, but when I set the type to modeless, the balloon disappears as soon as I call the procedure.

TIA!

SCott
0
Comment
Question by:bfreescott
  • 2
  • 2
6 Comments
 
LVL 26

Expert Comment

by:EDDYKT
Comment Utility
You can set your form always on top

ie
Const SWP_NOACTIVATE = &H10
Const SWP_NOMOVE = &H2
Const SWP_NOSIZE = &H1
Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal X As Long, ByVal Y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long

SetWindowPos Me.hwnd, -1, 0, 0, 0, 0, SWP_NOACTIVATE Or SWP_NOMOVE Or SWP_NOSIZE
0
 

Author Comment

by:bfreescott
Comment Utility
is there no way to do this in vba without using the API??
0
 
LVL 85

Expert Comment

by:Rory Archibald
Comment Utility
Do you have a callback procedure set?
0
 

Author Comment

by:bfreescott
Comment Utility
no, i was looking at that though.  do you think that's what i need here??
0
 
LVL 85

Accepted Solution

by:
Rory Archibald earned 500 total points
Comment Utility
Yes - as far as I know you cannot have a modeless balloon without a callback procedure. Note also that the callback must take three arguments, a Balloon and two Longs.
Rory
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

763 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

12 Experts available now in Live!

Get 1:1 Help Now