microsoft office 2007 microsoft word chapter 9 enhancing an online form and working with macros,...
TRANSCRIPT
Microsoft Office 2007
Microsoft Word Chapter 9Enhancing an Online Form and Working with Macros, Document Security, and XML
Objectives
• Unprotect a document• Specify macro settings• Use fill effects• Convert a table to text• Add a 3-D effect to a shape• Rotate a graphic• Insert and edit a field
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 2
Objectives
• Record and execute a macro• Customize the Quick Access Toolbar• Edit a macro’s VBA code• Save a document with a password• Use the Document Inspector• Add a signature line or a digital signature• Work with XML
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 3
Plan Ahead
• Save the form to be modified as a macro-enabled template
• Enhance the visual appeal of a form• Add macros to automate tasks• Incorporate security in a document• Determine how the form data will be analyzed
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 4
Starting Word• Start Word• If the Word window is not maximized, click its Maximize button• If the Print Layout button on the status bar is not selected, click it
so that Word is in Print Layout view• If the rulers are displayed, click the View Ruler button on the
vertical scroll bar because you will not use the rulers to perform tasks in this project
• If the edges of the page do not extend to the edge of the document window, click View on the Ribbon and then click Page Width on the View tab to zoom page width
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 5
Saving a Macro-Enabled Template• Open the template named Universal Travel from the USB flash
drive• Click the Office Button and then click Save As on the Office Button
menu to display the Save As dialog box• Type Universal Travel Modified in the File name text
box to change the file name• Click the Save as type box arrow and then click Word Macro-
Enabled Template in the list to change the fi le type • Click the Save button in the Save As dialog box to save the file
called Universal Travel Modified as a macro-enabled template on the USB flash drive
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 6
Saving a Macro-Enabled Template
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 7
Showing the Developer Tab
• Click the Office Button and then click the Word Options button on the Office Button menu.
• If necessary, click Popular in the left pane of the Word Options dialog box
• If it is not selected, place a check mark in the Show Developer tab in the Ribbon check box
• Click the OK button to show the Developer tab on the Ribbon
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 8
Unprotecting a Document• Display the Developer tab• Click the Protect Document button on the Developer tab
to display the Restrict Formatting and Editing task pane (If a menu appears instead of the task pane, click Restrict Formatting and Editing on the menu to display the task pane.)
• Click the Stop Protection button in the Restrict Formatting and Editing task pane to unprotect the form
• Click the Close button in the Restrict Formatting and Editing task pane to close the task pane
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 9
Unprotecting a Document
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 10
Specifying Macro Settings in Word
• Click the Macro Security button on the Developer tab to display the Trust Center dialog box
• If it is not selected already, click the ‘Disable all macros with notification’ option button, which causes Word to alert you when a document contains a macro so that you can decide whether to enable or disable the macro
• Click the OK button
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 11
Specifying Macro Settings in Word
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 12
Deleting a Graphic and Changing Theme Colors and Fonts• Click the clip art image of the luggage to select it and
then press the DELETE key to delete the clip art image• Display the Home tab. Click the Change Styles button on
the Home tab, point to Colors on the Change Styles menu, and then select Module in the Colors gallery to change the document theme colors to Module
• Click the Change Styles button on the Home tab, point to Fonts on the Change Styles menu, and then select Solstice in the Fonts gallery to change the document theme fonts to Solstice
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 13
Saving a New Theme• Display the Page Layout tab• Click the Themes button on the Page Layout tab to
display the Themes gallery• Click Save Current Theme in the Themes gallery to
display the Save Current Theme dialog box• Type Universal Travel Modified in the
File name text box as the custom theme name• Click the Save button to add the theme to the
Themes gallery as a custom theme
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 14
Saving a New Theme
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 15
Using a Fill Effect for the Page Color• Click the Page Color button on the Page Layout tab to
display the Page Color gallery• Click Fill Effects in the Page Color gallery to display the
Fill Effects dialog box• Click the Texture tab in the dialog box to display the
Texture sheet• Scroll to the bottom of the Texture gallery and then click
Oak to select the Oak texture• Click the OK button to use the Oak texture as the page
color in the document
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 16
Using a Fill Effect for the Page Color
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 17
Formatting Text• Select the first line of text, UNIVERSAL TRAVEL, and then change its font
to Wide Latin. Right-align the line of text• Select the second line of text, which contains the business tag line: Your
Ticket to the World. Change its font to Arial Rounded MT Bold. Change its color to Green, Accent 4, Darker 50%. Right-align the line of text
• Select the third line of text, which contains the form name, E-Mail Request Form for Weekly Specials. Remove the bold format from the text. Change its color to Gold, Accent 1, Lighter 40%. Left-align the line of text
• Select the fourth line of text, which are the user instructions that currently are highlighted gray. Change the highlight color to Dark Yellow. Change the font color to Gray-25%, Background 2. Left-align the line of text
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 18
Formatting Text
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 19
Changing the Properties of a Plain Text Content Control• Display the Developer tab• Click the First Name content control to select it• Click the Control Properties button on the Developer tab to display the
Content Control Properties dialog box• Remove the check mark from the ‘Content control cannot be deleted’
check box• Click the OK button to assign the modified properties to the content
control.• Click the Last Name content control to select it and then click the
Control Properties button on the Developer tab to display the Content Control Properties dialog box
• Remove the check mark from the ‘Content control cannot be deleted’ check box, and then click the OK button to assign the modified properties to the content control
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 20
Changing the Properties of a Plain Text Content Control
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 21
Converting a Table to a Text• Position the insertion point somewhere in the table• Display the Layout tab• Click the Convert to Text button on the Layout tab to
display the Convert Table To Text dialog box• In the ‘Separate text with’ area, click Paragraph marks,
which will place a paragraph mark at the location of each new column in the table
• Click the OK button to convert the table to text, separating each column with a paragraph mark
• Click anywhere to remove the selection from the text
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 22
Converting a Table to a Text
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 23
Changing the Properties of a Plain Text Content Control• Display the Developer tab• Click the First Name content control to select it and
then click the Control Properties button on the Developer tab to display the Content Control Properties dialog box
• Place a check mark in the ‘Content control cannot be deleted’ check box and then click the OK button to assign the modified properties to the content control
• Repeat Steps 2 and 3 for the Last Name content control
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 24
Resizing the Rectangle Shape
• If necessary, click the rectangle shape to select it• Position the mouse pointer on the bottom-
middle sizing handle of the rectangle shape• Drag the bottom-middle sizing handle downward
so that the shape includes the Favorite Destinations content control
• Release the mouse button
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 25
Resizing the Rectangle Shape
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 26
Modifying and Formatting Text• Scroll to display the second page of the online form and
then delete the line of text on this page. If necessary, press the BACKSPACE key as many times as required to delete the page entirely. Scroll to display page one in the document window
• Change the exclamation point at the end of the last line to a period, press the SPACEBAR, and then type Thank You!
• Select the line and change its font color to Green, Accent 4, Darker 50%. Click anywhere to remove the selection from the text
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 27
Modifying and Formatting Text
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 28
Modifying a Style Using the Styles Task Pane• If necessary, scroll to display the entire form in
the window• Select the hyperlink in the form• Display the Home tab• Click the Styles Dialog Box Launcher to display
the Styles task pane• Click Hyperlink in the list of styles in the task
pane and then click the Hyperlink box arrow to display the Hyperlink menu
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 29
Modifying a Style Using the Styles Task Pane• Click Modify on the Hyperlink menu to display the
Modify Style dialog box• Click the Bold button in the dialog box• Click the Font Color box arrow to display the Font Color
gallery• Click Red, Accent 6, Darker 50% as the new hyperlink
color• Click the OK button. Close the Styles task pane• Click outside the selected text to remove the selection
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 30
Modifying a Style Using the Styles Task Pane
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 31
Adding a 3-D Effect to a Shape
• Click the rectangle shape to select it.• Display the Format tab• Click the 3-D Effects button on the Format tab to
display the 3-D Effects gallery• Point to 3-D Style 9 in the 3-D Effects gallery to
display a live preview of that 3-D effect applied to the rectangle shape in the document
• Click 3-D Style 9 in the 3-D Effects gallery to apply the selected 3-D effect to the rectangle shape
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 32
Adding a 3-D Effect to a Shape
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 33
Changing the Direction of a 3-D Effect• With the rectangle shape still selected, click the
3-D Effects button on the Format tab to display the 3-D Effects gallery
• Point to Direction in the 3-D Effects gallery to display the Direction gallery
• Point to Top Left in the Direction gallery to display a live preview of that direction applied to the 3-D effect in the document
• Click Top Left in the Direction gallery to apply the selected direction to the 3-D effect
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 34
Changing the Direction of a 3-D Effect
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 35
Changing the Color of a 3-D Effect
• With the rectangle shape still selected, click the 3-D Effects button on the Format tab to display the 3-D Effects gallery
• Point to 3-D Color in the 3-D Effects gallery to display the 3-D Color gallery
• Point to Green, Accent 4, Darker 50% in the 3-D Color gallery to display a live preview of that 3-D color in the document
• Click Green, Accent 4, Darker 50% in the 3-D Color gallery to apply the selected 3-D color
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 36
Changing the Color of a 3-D Effect
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 37
Filling a Shape with a Picture• With the rectangle shape still selected, click the Shape
Fill button arrow on the Format tab to display the Shape Fill gallery
• Click Picture in the Shape Fill gallery to display the Select Picture dialog box
• With your USB flash drive connected to one of the computer’s USB ports, locate and then click the file called Trees on the USB flash drive to select the file
• Click the Insert button in the dialog box to fill the rectangle shape with the picture
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 38
Filling a Shape with a Picture
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 39
Changing the Color of a Picture
• Display the Picture Tools Format tab• With the rectangle shape still selected, click the
Recolor button on the Picture Tools Format tab to display the Recolor gallery
• Point to Washout in the Recolor gallery to display a live preview of the Washout color applied to the picture
• Click Washout in the Recolor gallery to apply the Washout color to the picture
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 40
Changing the Color of a Picture
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 41
Inserting Clip Art from the Web
• Display the Insert tab. Click the Clip Art button on the Insert tab to display the Clip Art task pane
• In the Clip Art task pane, type luggage in the Search for text box
• Click the Go button to display a list of clips that match the description, luggage
• Scroll to and then click the luggage clip art• Close the Clip Art task pane
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 42
Inserting Clip Art from the Web
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 43
Inserting a Graphic File from the Data Files for Students• Display the Insert tab. Click the Insert Picture
from File button on the Insert tab to display the Insert Picture dialog box
• With your USB flash drive connected to one of the computer’s USB ports, locate and then click the file called Luggage on the USB fl ash drive to select the file
• Click the Insert button in the dialog box to insert the picture at the location of the insertion point in the document
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 44
Scaling the Graphic, Changing Its Wrapping Style, and Moving it• With the graphic still selected, click the Size Dialog Box Launcher
on the Picture Tools Format tab to display the Size dialog box• Change the values in the Height and Width text boxes in the Scale
area to 70%• Close the Size dialog box• Click the Text Wrapping button on the Format tab to display the
Text Wrapping menu• Click In Front of Text on the Text Wrapping menu to change the
graphic from inline to floating with In Front of Text wrapping• Point inside the selected graphic, and when the mouse pointer
has a four-headed arrow attached to it, drag the graphic to the location
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 45
Scaling the Graphic, Changing Its Wrapping Style, and Moving it
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 46
Rotating a Graphic• Position the mouse pointer on the graphic’s
rotate handle• Drag the rotate handle leftward and downward
to rotate the graphic• Release the mouse button to position the graphic
in the location where you dragged the rotate handle. (You may need to rotate the graphic a few times to position it in the desired location)
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 47
Rotating a Graphic
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 48
Changing the Properties of a Date Content Control • Display the Developer tab• Click the Today’s Date content control to select it• Click the Control Properties button on the Developer tab
to display the Content Control Properties dialog box• Remove the check mark from the ‘Content control
cannot be deleted’ check box• Click the OK button to assign the modified properties to
the content control.• Click the Today’s Date content control to select it again
and then press the DELETE key to delete it
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 49
Changing the Properties of a Date Content Control
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 50
Inserting a Date Field• Display the Insert tab• With the insertion point positioned, click the Quick Parts button
on the Insert tab to display the Quick Parts menu• Click Field on the Quick Parts menu to display the Field dialog box• Scroll through the Field names list and then click Date, which
displays the Date formats list in the Field properties area• Click the format, 5/26/2008 9:35:34 PM, in the Date formats list
— your date and time will differ• Click the OK button to insert the current date and time at the
location of the insertion point
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 51
Inserting a Date Field
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 52
Editing a Field• Right-click the date field to display a shortcut menu• Click Edit Field on the shortcut menu to display the Field
dialog box• If necessary, scroll through the Field names list and then
click Date, which displays the Date formats list in the Field properties area
• Select the desired date format, in this case, 5/26/2008 9:38 PM
• Click the OK button to insert the edited current date and time at the location of the insertion point
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 53
Editing a Field
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 54
Moving Text
• Select the entire date line• Use drag-and-drop editing to move the selection
so that it is positioned just above the First Name content control
• If the graphic also moves when you move the text, drag the graphic to the correct location
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 55
Modifying a Style Using the Manage Styles Button• Display the Home tab• Click the Styles Dialog Box Launcher on the Home tab to
display the Styles task pane• Click the Manage Styles button in the Styles task pane to
display the Manage Styles dialog box• Click the Sort order box arrow and then click Alphabetical so
that the styles are listed in alphabetical order• Scroll through the list of styles and select the one you wish
to modify, Placeholder Text, in this case, and then click the Modify button to display the Modify Style dialog box
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 56
Modifying a Style Using the Manage Styles Button• Click the Bold button in the dialog box• Click the Font Color box arrow and then click
Green, Accent 4, Darker 50% as the new placeholder text color
• Click the OK button in each open dialog box. Close the Styles task pane
• If necessary, click outside the selected text to remove the selection
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 57
Modifying a Style Using the Manage Styles Button
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 58
Saving a Template Again
• Save the template again with the same file name, Universal Travel Modified
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 59
Recording a Macro and Assigning it a Shortcut Key• Display the Developer tab• Click the Record Macro button on the Developer tab to
display the Record Macro dialog box• Type HideDeveloperTab in the Macro name text
box• Click the ‘Store macro in’ box arrow and then click
Documents Based On Universal Travel Modified• In the Description text box, type this sentence: Hides the Developer tab.
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 60
Recording a Macro and Assigning it a Shortcut Key• Click the Keyboard button to display the Customize
Keyboard dialog box• Press ALT+D to display the characters ALT+D in the ‘Press
new shortcut key’ text box• Click the Assign button to assign the shortcut key, ALT+D,
to the macro named HideDeveloperTab.• Click the Close button, which closes the dialog box,
places a Macro Recording button on the status bar, and starts the macro recorder
• Click the Office Button to display the Offi ce Button menu
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 61
Recording a Macro and Assigning it a Shortcut Key• Click the Word Options button on the Office Button
menu to display the Word Options dialog box• If necessary, click Popular in the left pane• Remove the check mark from the Show Developer tab in
the Ribbon check box• Click the OK button to remove the Developer tab from
the Ribbon• Click the Macro Recording button on the status bar to
turn off the macro recorder, that is, to stop recording actions you perform in Word
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 62
Recording a Macro and Assigning it a Shortcut Key
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 63
Running a Macro• Click the Office Button and then click the Word Options
button on the Office Button menu. If necessary, click Popular in the left pane of the Word Options dialog box
• If it is not selected, place a check mark in the Show Developer tab in the Ribbon check box
• Click the OK button to show the Developer tab on the Ribbon
• With the Developer tab showing on the Ribbon, press ALT+D, which causes Word to perform the instructions stored in the HideDeveloperTab macro, that is, to hide the Developer tab on the Ribbon
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 64
Adding a Macro as a Button to the Quick Access Toolbar• Click the Customize Quick Access Toolbar button on the Quick
Access Toolbar to display the Customize Quick Access Toolbar menu
• Click More Commands on the Customize Quick Access Toolbar menu to display the Word Options dialog box with Customize selected in the left pane
• Click the ‘Choose commands from’ box arrow to display a list of categories of commands
• Click Macros in the list to display the macro in this document• If necessary, click the macro to select it• Click the Add button to display the selected macro in the
Customize Quick Access Toolbar list
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 65
Adding a Macro as a Button to the Quick Access Toolbar• Click the Modify button to display the Modify Button dialog box• Change the name in the Display name text box to Hide
Developer Tab, which will be the text that appears in the ScreenTip for the button
• Scroll through the list of symbols and click the eraser icon as the new face for the button
• Click the OK button in the Modify Button dialog box to change the button characteristics in the Customize Quick Access Toolbar list
• Click the OK button to add the button to the Quick Access Toolbar
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 66
Adding a Macro as a Button to the Quick Access Toolbar
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 67
Running the Macro by Clicking the Button on the Quick Access Toolbar• Click the Office Button and then click the Word Options button on
the Office Button menu. If necessary, click Popular in the left pane of the Word Options dialog box
• If it is not selected, place a check mark in the Show Developer tab in the Ribbon check box
• Click the OK button to show the Developer tab on the Ribbon• With the Developer tab showing on the Ribbon, point to the Hide
Developer Tab button on the Quick Access Toolbar to ensure the ScreenTip displays correctly
• Click the Hide Developer Tab button on the Quick Access Toolbar, which causes Word to perform the instructions stored in the HideDeveloperTab macro, that is, to hide the Developer tab on the Ribbon
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 68
Running the Macro by Clicking the Button on the Quick Access Toolbar
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 69
Deleting a Button from a Toolbar
• Right-click the button to be deleted from the Quick Access Toolbar, in this case the Hide Developer Tab button, to display a shortcut menu
• Click Remove from Quick Access Toolbar on the shortcut menu to remove the button from the Quick Access Toolbar
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 70
Deleting a Button from a Toolbar
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 71
Creating an Automatic Macro• Show the Developer tab on the Ribbon and then display
the Developer tab• Click the Record Macro button on the Developer tab to
display the Record Macro dialog box• Type AutoNew in the Macro name text box• Click the ‘Store macro in’ box arrow and then click
Documents Based On Universal Travel Modified• In the Description text box, type this sentence: Specifies how the form initially is displayed.
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 72
Creating an Automatic Macro
• Click the OK button to close the Record Macro dialog box and start the macro recorder
• Display the View tab• Click the Page Width button on the View tab to
zoom page width• Click the Macro Recording button on the status
bar to turn off the macro recorder, that is, stop recording actions you perform in Word
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 73
Creating an Automatic Macro
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 74
Running the AutoNew Macro• Use the Zoom Out button on the status bar to change the zoom to 100%• Save the template with the same name, Universal Travel Modified• Click the Start button on the Windows Vista taskbar to display the Start
menu. Click Computer on the Start menu to display the Explorer window
• Locate your USB flash drive in the Explorer window and then double-click the file named Universal Travel Modified to display a new document window that is based on the contents of the Universal Travel Modified template, which should be zoomed to page width
• Close the new document that displays the form in the Word window. Click the No button when Word asks if you want to save the changes to the new document
• Change the zoom back to page width
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 75
Running the AutoNew Macro
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 76
Editing a Macro’s VBA Code
• Display the Developer tab• Macros button on the Developer tab to display
the Macros dialog box• If necessary, select the macro to be edited, in this
case, AutoNew• Click the Edit button to start the Visual Basic
Editor and display the VBA code for the AutoNew macro in the Code window — your screen may appear differently depending on previous Visual Basic Editor settings
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 77
Editing a Macro’s VBA Code• Position the insertion point at the end of the second-to-last line in
the AutoNew macro and then press the ENTER key to insert a blank line for a new code statement
• On a single line, type Options .ShowDevTools = False and then press the ENTER key, which enters the VBA code statement that hides the Developer tab
• On a single line, type ActiveWindow.ActivePane.View.ShowAll = False and then press the ENTER key, which enters the VBA code statement that turns off formatting marks
• Click the Close button on the right edge of the Microsoft Visual Basic window title bar
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 78
Editing a Macro’s VBA Code
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 79
Running the AutoNew Macro• Display the Home tab. If necessary, click the Show/Hide ¶ button
on the Home tab to display formatting marks• Ensure the Developer tab appears on the Ribbon• Save the template with the same name, Universal Travel Modified• Click the Start button on the Windows Vista taskbar to display the
Start menu and then click Computer on the Start menu to display the Explorer window
• Locate your USB flash drive in the Explorer window and then double-click the file named Universal Travel Modified to display a new document window that is based on the contents of the Universal Travel Modified template, which should be zoomed to page width
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 80
Running the AutoNew Macro
• Close the new document that displays the form in the Word window. Click the No button when Word asks if you want to save the changes to the new document
• Close the Explorer window• In the Word window, hide formatting marks on
the screen
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 81
Running the AutoNew Macro
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 82
Protecting a Form• Show the Developer tab and then display the Developer tab• Click the Protect Document button on the Developer tab to
display the Restrict Formatting and Editing task pane. (If a menu appears instead of the task pane, click Restrict Formatting and Editing on the menu to display the task pane.)
• In the Editing restrictions area, if necessary, place a check mark in the ‘Allow only this type of editing in the document’ check box and then click its box arrow and select ‘Filling in forms’ in the list
• In the Start enforcement area, click the Yes, Start Enforcing Protection button and then click the OK button in the dialog box to protect the document without a password
• Close the Restrict Formatting and Editing task pane
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 83
Running the Compatibility Checker• Click the Office Button and then point to Prepare to display the
Prepare submenu• Click Run Compatibility Checker on the Prepare submenu to
display the Microsoft Office Word Compatibility Checker dialog box, which shows any content that may not be supported by earlier versions of Word
• Analyze the results of the compatibility checker: Because the compatibility checker indicated that content controls are not supported in earlier versions of Word, you will not save the template in the Word 97-2003 format
• Click the OK button in the dialog box
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 84
Running the Compatibility Checker
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 85
Saving the Document Again and Closing the Template• Save the template again with the same name,
Universal Travel Modified• Click the Office Button and then click Close on
the Office Button menu to close the template and leave Word running
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 86
Saving a Document with a Password• Open the file called Best Business Solutions Draft from
the Data Files for Students• Click the Office Button and then click Save As to display
the Save As dialog box• Type Best Business Solutions Modified as
the new file name• Click the Tools button in the dialog box to display the
Tools menu• Click General Options on the Tools menu to display the
General Options dialog box
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 87
Saving a Document with a Password• In the ‘Password to modify’ text box, type computer
as the password• Click the OK button, which displays a Confirm Password
dialog box• In the ‘Reenter password to modify’ text box, type
computer as the password• Click the OK button to close the dialog box• When the Save As dialog box is visible again, click its
Save button to save the document with the entered password
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 88
Saving a Document with a Password
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 89
Creating a Building Block• Select the text to be a building block, in this case, the five lines in
the inside address.• Display the Insert tab. Click the Quick Parts button on the Insert
tab to display the Quick Parts menu• Click Save Selection to Quick Part Gallery on the Quick Parts menu
to display the Create New Building Block dialog box.• Type Best Business Solutions in the Name text box• Click the OK button to store the building block entry in the Quick
Parts gallery and close the dialog box. If Word displays another dialog box, click the Yes button
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 90
Creating a Building Block
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 91
Modifying a Building Block• Click the Quick Parts button on the Insert tab to display the Quick
Parts gallery• Right-click the Best Business Solutions building block to display a
shortcut menu• Click Edit Properties on the shortcut menu to display the Modify
Building Block dialog box, which is filled in with information related to the Best Business Solutions building block.
• Type Conference Room Reservation in the Description text box
• Click the OK button to store the building block entry and close the dialog box
• Click the Yes button when asked if you want to redefine the building block entry
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 92
Modifying a Building Block
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 93
Using the Document Inspector• Click the Office Button and then point to Prepare on the Office
Button menu• Click Inspect Document on the Prepare submenu to display the
Document Inspector dialog box• Review the list of items in the Document Inspector dialog box
and, if necessary, place a check mark for content you may want to remove; in this case, select all items in the list
• Click the Inspect button so that Word searches for content that you selected and displays the search results in the dialog box
• Review the inspection results and determine which content you want to remove from the document
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 94
Using the Document Inspector
• Click the first Remove All button to remove document properties and personal information
• Click the next Remove All button to remove XML data
• Click the next Remove All button to remove headers, footers, and watermarks
• Click the next Remove All button to remove hidden text
• Click the Close button to close the dialog box
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 95
Using the Document Inspector
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 96
Adding a Signature Line to a Document• Position the insertion point at the location for
the digital signature, in this case, at the very bottom of the document
• Click the Signature Line button on the Insert tab to display the Signature Setup dialog box
• If a dialog box appears about signature services, click its OK button
• Type the name of the person who should sign the document, Aaron Jenkins, in this case
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 97
Adding a Signature Line to a Document• If available, type the signer’s e-mail address, [email protected], in this case
• Place a checkmark in the ‘Allow the signer to add comments in the Sign dialog’ check box so that the recipient can add
• Click the OK button to insert a signature line in the document at the location of the insertion point a message back to you
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 98
Adding a Signature Line to a Document
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 99
Adding an Invisible Digital Signature to a Document• Click the Office Button and then point to Prepare
to display the Prepare submenu• Click Add a Digital Signature on the Prepare
submenu to display the Sign dialog box• If a dialog box about signature services appears,
click its OK button• In the ‘Purpose for signing this document’ text
box, type Verify its authenticity.
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 100
Adding an Invisible Digital Signature to a Document• Click the Sign button to add the digital signature,
show the Signatures button on the status bar, and display the Signatures task pane, which lists all current digital signatures in the document — your list may differ
• If a dialog box appears indicating the signature has been saved successfully, click its OK button
• Click the Close button on the Signatures task pane
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 101
Adding an Invisible Digital Signature to a Document
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 102
Saving a Document in an XPS Format
• Click the Office Button and then point to Save As on the Office Button menu to display the Save As submenu
• Click PDF or XPS on the Save As submenu to display the Publish as PDF or XPS dialog box
• If necessary, click the ‘Save as type’ box arrow and then click XPS Document
• If necessary, place a check mark in the ‘Open file after publishing’ check box, so that you can see the XPS document that Word creates
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 103
Saving a Document in an XPS Format
• Click the Publish button, which creates an XPS file of the current document, starts your default XPS viewer program, and displays the XPS file in the viewer window, which in this case is Internet Explorer
• Click the Close button to close the XPS file and exit the viewer
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 104
Saving a Document in an XPS Format
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 105
Customizing How Word Opens E-Mail Attachments• Click the Office Button and then click the Word
Options button to display the Word Options dialog box. If necessary, click Popular in the left pane
• Remove the check mark from the ‘Open e-mail attachments in Full Screen Reading view’ check box
• Click the OK button
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 106
Closing the Document
• Click the Office Button and then click Close on the Office Button menu to close the document and leave Word running
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 107
Saving a Document in the Default XML Format• Open the file called That Pool Place - No Schema
Attached from the Data Files for Students• Click the Office Button and then click Save As to
display the Save As dialog box• Click the ‘Save as type’ box arrow and then click
Word XML Document in the list• Click the Save button to save the template as an
XML document
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 108
Saving a Document in the Default XML Format
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 109
Closing the Document
• Click the Office Button and then click Close on the Office Button menu to close the document and leave Word running
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 110
Attaching a Schema File• Open the file called That Pool Place from the Data Files
for Students• Use the Save As command to save the file with the new
name, That Pool Place – Schema Attached• Display the Developer tab• Click the Schema button on the Developer tab to display
the Templates and Add-ins dialog box• Click the Add Schema button to display the Add Schema
dialog box• Locate the file called That Pool Place.xsd on the Data
Files for StudentsMicrosoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 111
Attaching a Schema File• Click That Pool Place.xsd in the list of schema files• Click the Open button in the Add Schema dialog box to display the
Schema Settings dialog box• Type urn:form-schema-1 in the URI text box, and then type That Pool Place in the Alias text box
• Click the OK button to add the schema to the Schema Library and then add the namespace alias to the list of available schemas in the XML Schema sheet in the Templates and Add-ins dialog box
• If necessary, place a check mark in the That Pool Place check box• Click the OK button, which causes Word to attach the selected
schema to the open document and display the XML Structure task pane in the Word window
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 112
Attaching a Schema File
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 113
Adding a Parent and Child XML Element• Position the insertion point at the top of the document• In the ‘Choose an element to apply to your current selection’ list in the XML
Structure task pane, double-click ThatPoolPlace{That Pool Place} to display the ‘Apply to entire document’ dialog box
• Click the Apply to Entire Document button to place start and end tags on the entire document, that is, to tag the parent element.
• Be sure the ‘Show XML tags in the document’ check box contains a check mark• Click the First Name content control in the online form and then click its label
to select the content control• Click FirstName in the ‘Choose an element to apply to your current selection’
list, which places start and end tags on the text selected in the document and moves the selected child element below the parent element in the ‘Elements in the document’ list in the task pane
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 114
Adding a Parent and Child XML Element
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 115
Adding XML Elements• Click the Last Name content control in the online form and then click its label to select
the content control. Click LastName in the ‘Choose an element to apply to your current selection’ list to tag the text selected in the document and add the element to the XML tree structure
• Click the Today’s Date content control in the online form and then click its label to select the content control. Click TodaysDate in the ‘Choose an element to apply to your current
• selection’ list to tag the text selected in the document and add the element to the XML tree structure
• Click the E-Mail Address content control in the online form and then click its label to select the content control. Click EmailAddress in the ‘Choose an element to apply to your current selection’ list to tag the text selected in the document and add the element to the XML tree structure
• Click the Pool Size content control in the online form and then click its label to select the content control. Click PoolSize in the ‘Choose an element to apply to your current selection’ list to tag the text selected in the document and add the element to the XML tree structure
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 116
Adding XML Elements• Click the Type of Pool content control in the online form and then click
its label to select the content control. Click TypeOfPool in the ‘Choose an element to apply to your current selection’ list to tag the text selected in the document and add the element to the XML tree structure
• Click the Type of Supplies Purchased Most Often content control in the online form and then click its label to select the content control. Click TypeOfSupplies in the ‘Choose an element to apply to your current selection’ list to tag the text selected in the document and add the element to the XML tree structure
• Click anywhere to remove the selection from the text• Remove the check mark from the ‘Show XML tags in the document’
check box so that the tags no longer appear in the document window
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 117
Adding XML Elements
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 118
Saving a Document in the Default XML Format• Click the Office Button and then click Save As to
display the Save As dialog box• Click the ‘Save as type’ box arrow and then click
Word XML Document in the list• Click the Save button to save the template as an
XML document. Close the XML Structure task pane
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 119
Setting Exceptions to Editing Restrictions• Click the Protect Document button on the Developer tab to display the Restrict
Formatting and Editing task pane• If necessary, place a check mark in the ‘Allow only this type of editing in the
document’ check box and then change the associated text box to No changes (Read only), which instructs Word to prevent any editing to the document
• Click the First Name placeholder text. Press and hold the CTRL key while clicking the rest of the placeholder text in the online form
• Place a check mark in the Everyone check box in the Exceptions (optional) area, which instructs Word that the selected text can be edited — the rest of the form will be read only
• Click the Yes, Start Enforcing Protection button in the Restrict Formatting and Editing task pane
• Click the OK button in the Start Enforcing Protection dialog box• Close the Restrict Formatting and Editing task pane
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 120
Setting Exceptions to Editing Restrictions
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 121
Saving an XML Document as a Template and Quitting Word• Click the Office Button and then click Save As to display
the Save As dialog box• Change the file name to That Pool Place Modified -
Schema Attached• Click the ‘Save as type’ box arrow and then click Word
Template in the list• Click the Save button to save the template so that users
can create new documents based on the template• Click the Close button on the Word title bar
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 122
Summary
• Unprotect a document• Specify macro settings• Use fill effects• Convert a table to text• Add a 3-D effect to a shape• Rotate a graphic• Insert and edit a field
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 123
Summary
• Record and execute a macro• Customize the Quick Access Toolbar• Edit a macro’s VBA code• Save a document with a password• Use the Document Inspector• Add a signature line or a digital signature• Work with XML
Microsoft Office 2007: Comprehensive Concepts and Techniques - Windows Vista Edition 124
Microsoft Office 2007
Microsoft Word Chapter 9 Complete