Balloon Popup Word 2003 VBA

J

Janine_docsonline

In Word 2003 I cannot make this macro run. In MODULE will not invoke? What
is missing? Thank you so much for any ideas?

Sub MaidenNamePopUp()

Dim Balloon As Balloon

Set Balloon = Assistant.NewBalloon

With Balloon
..Heading = "{cf 249} Mandatory Information"
..Text = "Everyone has a mother. You can not leave this block blank."
..Button = msoButtonSetOK
..Animation = msoAnimationGetAttentionMajor
..Show
End With

End Sub

Regards
Janine
 
G

Greg Maxey

Janine.

Hmmm, I am not sure. I copied your code, which looks like something I have
see before :) to a new document and it works fine. I suspect in might be
due to a missing reference in your Reference Library but I am not sure which
one. In the VB Editor, look at Tool>References. I have the following
enabled:

Visual Basic For Applications
OLE Automation
Normal
Microsoft Office 11.0 Object Library
Microsoft Word 11.0 Object Library
 
J

Janine_docsonline

Thank you all turned on except I do not show Normal. Have an error code in
Hidden Module perhaps this is the problem.

It is of course your code - it is me that is having the problem per se not
the code.

All my other macros run fine. I will have to make sure that Normal is
available to be checked. All my other add-ins are available for checking
but I do not check them as I have not needed to. I use ADO so Object
Library was already checked.

Thank you so much for help. I will dig around and see what my problem is.

Regards
Janine
 
J

Janine_docsonline

Greg
Still no luck - new document same code all references checked (by default
even normal). I put code into new doc. It does not RUN in VBA area.

All my other codes and all of yours work fine except this. Do tools options
settings upset it? Perhaps it is not happy on 2003 Australian...
Janine
 
G

Greg

Janine,

I don't know what the problem could be. What happens if you try to
step through the code using F8 in the VB editor? Can you determine
where/how the code is failing?

If you discover the problem, please let me know so I can mention the
solution on the web page.

Sorry I can't help more.
 
J

Janine_docsonline

Greg
I even rewrote the code. It is fine no errors it must be my system. I even
did the AutoNew which is not much different and that won't work. Message
box was fine though. Will let you know if I figure it out? I rather
fancied seeing balloons pop up for a change.

Thank you for help
Janine
 

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.

Ask a Question

Top