• Macrobutton in forms

    Author
    Topic
    #353817

    I’ve just been reading a thread that refers to using MacroButton as a hyperlink in protected forms (MacroButton will run in a protected section).

    I can use Macrobutton to mail the form okay but I cannot seem to find anything that will act as a hyperlink to another document – I want to return to the doc index which is in pdf format.

    I have found HyperlinkOpen in the macroButton options list but what does it do? How do I define the file to link to?

    I have read Charles Kenyon’s article about MacroButtons but there is only a tantalising mention.

    Viewing 0 reply threads
    Author
    Replies
    • #538298

      I have been trying to make a macrobutton work as a hyperlink (on an intranet) to docs other than Word and have at succeeded. So for anyone who wants a hyperlink in a protected area here is the macro to call up in the button field:

      Sub link_go()

      ActiveDocument.FollowHyperlink Address:= _
      “emm4000.pdf”, NewWindow:=False _
      , AddHistory:=True

      End Sub

      Any URL you like between the ” ” – my example is a relative URL with everything in the same directory.

      In a browser it opens in the same window but on a harddrive it will open the new application in a seperate window.

      I know it looks obvious but it’s a major triumph for me… Thanks to Charles Kenyon for tips.

      • #538489

        You are welcome, it feels good to pay back some of the great advice I’ve gotten. A further refinement to make it a single-click can be seen in this post.

        I’ve put what little I know about macrobuttons in the draft of a page I’m writing on fields.

    Viewing 0 reply threads
    Reply To: Macrobutton in forms

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: