Sunday, November 27, 2011

How to Add a Hyperlink to a MS Word Form


1. Open the Word document to which you will add the form.
2. Create a macro for your hyperlink before creating your form by clicking on the “Tools” menu. Choose “Macro” and then “Visual Basic Editor.” This will allow users to open your hyperlink after your form is protected.
3. Click on the “Insert” menu and choose “Module” for a new page. Copy the following code, provided by Microsoft Support, and paste it into the editor:Sub FollowLink()
Selection.Hyperlinks(1).Follow
End Sub
4. Close Microsoft Visual Basic. Your macro will be saved automatically and you’ll be returned to your form to continue your work.
5. Open the “Forms” toolbar by clicking on “View,” “Toolbars” and “Customize.” Place a check mark by “Forms” to add it to the toolbar.
6. Display formatting marks on your page by clicking on the “View/Hide” button in the “Standard” toolbar. Alternatively, you may go to the “Tools” menu, choose “Options” and then click on the “View” tab. Add add a check mark to “All.”
7. Place your cursor where you want to add the form with hyperlink. Select the “Text Form Field” button from the “Forms” toolbar and double-click on the form characters added to your page. These characters will look like five small circles (ooooo).
8. Pick “Regular Text” for “Type” and enter a form field into the “Default text” text box. Click “OK.” A form field will be added to your document. Select the form field you added to your page and click on “Insert” and “Hyperlink” from the toolbar.
9. Choose the link location in the “Insert Hyperlink” dialog box. To link to a file or web page, select “Existing File or Web Page.” Browse to link another document to your file or type in the link in the “Address” text box and click “OK.”
10. Select “Place in This Document” to link to another section in the document if desired and then click “OK.” To link to an email address, select “E-mail Address” instead. Enter the email address into the box and click “OK.”
11. Select the hyperlinked text on your page and then press “Alt+F9” on your keyboard to display the hyperlink’s code, such as {HYPERLINK "http://www.sitename.com/"}.
12. Select the text and press “Ctrl+F9” to add another set of brackets and gray shading to the previous code, such as { {HYPERLINK "http://www.sitename.com/"} }.
13. Modify the code by adding MacroButton “FollowLink” just after the first bracket. According to Microsoft Support, your code should be similar to this example:{ MacroButton "FollowLink"{ HYPERLINK "http://www.sitename.com/" } }
14. Reopen the "Form" toolbar by going to the "View" menu and choosing "Toolbars" and then "Forms" if it's closed. Protect the form to keep others from accessing your code by selecting the text and clicking on the “Protect Form” button in the “Forms” toolbar.
 

Blogger news

Pageviews past week

About