Visual Basic Macro

G

Guest

Hello and thanks for looking. Can anyone tell me how I insert a simple code
into visual basic in Word. I have a command button created in Control Box
that, when the user clicks it, I want it to jump to the next page. Despite
much reading of info I cannot work out where / how / what to put in the code
to make it run properly. Any clues? Thanks - Andrea
 
G

Guest

Hi

I think you have to try the next code behind your command button.

Application.Browser.Next

greetings
 
G

Guest

Thanks for the advice - that worked fine. However, what I did not realise is
when you protect a form the button does not operate. I managed to work out
how to use hyperlinks in forms but how can I work command buttons? Thanks a
lot.
 
C

Cindy M.

Hi =?Utf-8?B?TUlTU0E=?=,
However, what I did not realise is
when you protect a form the button does not operate. I managed to work out
how to use hyperlinks in forms but how can I work command buttons?
The simplest way is to use a MacroButton field (Insert/Fields). You can use a
graphic representation of a button as the "display text", or formatted text.

By default, the user needs to double-click the button to execute the macro.
But you can set Application.options.ButtonFieldClicks = 1 to make it execute
on a single click.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 

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