Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
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