Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.newusers
|
|||
|
|||
Visual Basic Macro
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 |
#2
Posted to microsoft.public.word.newusers
|
|||
|
|||
Visual Basic Macro
Hi
I think you have to try the next code behind your command button. Application.Browser.Next greetings "MISSA" wrote: 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 |
#3
Posted to microsoft.public.word.newusers
|
|||
|
|||
Visual Basic Macro
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. "DiVerdi" wrote: Hi I think you have to try the next code behind your command button. Application.Browser.Next greetings "MISSA" wrote: 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 |
#4
Posted to microsoft.public.word.newusers
|
|||
|
|||
Visual Basic Macro
Hi ?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 :-) |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Visual basic runtime error 5216, there is a printer error | Microsoft Word Help | |||
Can I use visual basic to create wizards in Word 2003? | Microsoft Word Help | |||
startup of Word 2003 and visual basic and "Subscript out of Range. | Microsoft Word Help | |||
How do I stop Visual Basic Macros from word? | Microsoft Word Help | |||
how do i compile a visual basic project in word? | Microsoft Word Help |