Results 1 to 3 of 3

Thread: MS WORD

  1. #1

    Thread Starter
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538

    Smile

    Example needed please, probably very simple & I will regret asking but...

    I have been asked to add code to a command Button on word which will take it to the next page (not bookmark > hyperlink, needs a button on the page).

    Any ideas please? I think it's the Word.WdGoToItem.wdGoToPage but I cannot get any help or examples for this.

    Thank you

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  2. #2
    Addicted Member
    Join Date
    Sep 2000
    Posts
    219
    'Try this

    Sub MoveToNextPage()
    Selection.GoTo What:=wdGoToPage, Which:=wdGoToNext, Count:=1, Name:=""
    End Sub

  3. #3

    Thread Starter
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    Thank you Shafee,

    It seems a lot of people avoid VBA questions on this forumn, even more so on Word, so I am very grateful for your reply!


    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width