Consulting

Results 1 to 2 of 2

Thread: Solved: click button to goto a bookmark

  1. #1
    VBAX Expert
    Joined
    Jan 2005
    Posts
    574
    Location

    Solved: click button to goto a bookmark

    Sorry guys I think this is simple but i know nothing about word

    I need a button (or anything else) on my document than when I click it takes me to another part of my form which is a bookmark

    All help appreciated

    Gibbo

    ok figured it out

    [VBA] Selection.GoTo What:=wdGoToBookmark, Name:="DropDownQ14"
    With ActiveDocument.Bookmarks
    .DefaultSorting = wdSortByName
    .ShowHidden = False
    End With [/VBA]

  2. #2
    Administrator
    VP-Knowledge Base
    VBAX Guru MOS MASTER's Avatar
    Joined
    Apr 2005
    Location
    Breda, The Netherlands
    Posts
    3,281
    Location
    Hi,



    To shorten you?re code:

    [VBA]
    Selection.GoTo What:=wdGoToBookmark, Name:="DropDownQ14"

    ?or

    ActiveDocument.Bookmarks("DropDownQ14").Select
    [/VBA]

    Enjoy!
    _________
    Groetjes,

    Joost Verdaasdonk
    M.O.S. Master

    Mark your thread solved, when it has been, by hitting the Thread Tools dropdown at the top of the thread.
    (I don't answer questions asked through E-mail or PM's)

Posting Permissions

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