Solved

vba excel Modeless Balloon

Posted on 2007-04-03
6
824 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

770 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