Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.newusers
MISSA MISSA is offline
external usenet poster
 
Posts: 2
Default 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   Report Post  
Posted to microsoft.public.word.newusers
DiVerdi DiVerdi is offline
external usenet poster
 
Posts: 1
Default 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   Report Post  
Posted to microsoft.public.word.newusers
MISSA MISSA is offline
external usenet poster
 
Posts: 2
Default 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   Report Post  
Posted to microsoft.public.word.newusers
Cindy M. Cindy M. is offline
external usenet poster
 
Posts: 2,416
Default 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

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Visual basic runtime error 5216, there is a printer error pat@stlukeshospital Microsoft Word Help 2 June 6th 18 08:53 PM
Can I use visual basic to create wizards in Word 2003? Holly Microsoft Word Help 2 April 3rd 06 08:25 AM
startup of Word 2003 and visual basic and "Subscript out of Range. JDH Microsoft Word Help 1 March 1st 06 05:00 PM
How do I stop Visual Basic Macros from word? RobSlattery Microsoft Word Help 4 July 9th 05 07:26 AM
how do i compile a visual basic project in word? california dan Microsoft Word Help 3 March 27th 05 04:14 AM


All times are GMT +1. The time now is 06:36 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"