Solved

vba excel Modeless Balloon

Posted on 2007-04-03
6
846 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
ID: 18845121
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
ID: 18845276
is there no way to do this in vba without using the API??
0
 
LVL 85

Expert Comment

by:Rory Archibald
ID: 18849559
Do you have a callback procedure set?
0
 

Author Comment

by:bfreescott
ID: 18853622
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
ID: 18853924
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

685 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