Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

Creating Pop-up Messages in Word


  • Please log in to reply

#1
tish

tish

    New Member

  • Member
  • Pip
  • 2 posts
hi, not sure if this is the right section to post in or in MS Office forum, but here goes.

i'm creating a form in Word, using tables. that part's fine. now i'm trying to add a pop-up message to one of the cells of the table so that when they click on the macrobutton in the cell ie. {macrobutton nomacro}, there will be a pop-up message with a warning on it. then they press the ok button and it will disappear.

i've already created the userform for it, but don't have any idea about the coding behind it.

i'm pretty new to this so please excure me if i've used the wrong terminology.

i'd appreciate any help.

thanks
tish
  • 0

Advertisements


#2
stu_design

stu_design

    Member

  • Member
  • PipPipPip
  • 217 posts
You have two options ...

u can use the MsgBox function ...
Msgbox Prompt, Buttons+Icon, DialogTitle

MsgBox "Hello", vbOkOnly, "This is a Message"

or -----**********---------

if u really want to use the form u created, you would use this

formname.show

and to close it

fromname.hide

Caution: if you are using automation (controlling word from another office application) it really doesnt like forms. If u are using the form in just word It works fine

There ya go if u have any more questions please ask me or the staff at www.geekstogo.com

PS If I don't know, somebody will!!!!
  • 0

#3
tish

tish

    New Member

  • Topic Starter
  • Member
  • Pip
  • 2 posts
hi stu

thanks for the help

have figure it out.

ended up entering the following code in the ThisDocument section:

Private Sub document_open()

MsgBox "Please ensure full address information is provided or the form will be returned!"

End Sub

your suggestion was much appreciated though!!

cheers
tish
  • 0

#4
stu_design

stu_design

    Member

  • Member
  • PipPipPip
  • 217 posts
Hey no prob!!

Everyone Needs a Hand Now and Again (as i always do :tazz:)

stu
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP